Re: [PATCH 2/3] zsmalloc: add generic path and remove x86 dependency

From: Seth Jennings
Date: Mon Jun 25 2012 - 13:21:30 EST


On 06/25/2012 11:59 AM, Greg Kroah-Hartman wrote:
> On Mon, Jun 25, 2012 at 11:14:37AM -0500, Seth Jennings wrote:
>> This patch adds generic pages mapping methods that
>> work on all archs in the absence of support for
>> local_tlb_flush_kernel_range() advertised by the
>> arch through __HAVE_LOCAL_TLB_FLUSH_KERNEL_RANGE
>
> Is this #define something that other arches define now? Or is this
> something new that you are adding here?

Something new I'm adding.

The precedent for this approach is the __HAVE_ARCH_* defines
that let the arch independent stuff know if a generic
function needs to be defined or if there is an arch specific
function.

You can "grep -R __HAVE_ARCH_* arch/x86/" to see the ones
that already exist.

I guess I should have called it
__HAVE_ARCH_LOCAL_TLB_FLUSH_KERNEL_RANGE though, not
__HAVE_LOCAL_TLB_FLUSH_KERNEL_RANGE.

--
Seth

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/