Re: [guv v2 22/31] arm: Replace __get_cpu_var uses

From: Catalin Marinas
Date: Tue Aug 27 2013 - 05:42:39 EST


On Mon, Aug 26, 2013 at 09:44:52PM +0100, Christoph Lameter wrote:
> This patch converts __get_cpu_var into either and explicit address calculation using this_cpu_ptr()
> or into a use of this_cpu operations that use the offset. Thereby address calcualtions are avoided
> and less registers are used when code is generated.
...
> Index: linux/arch/arm64/kernel/debug-monitors.c
> ===================================================================
> --- linux.orig/arch/arm64/kernel/debug-monitors.c 2013-08-26 13:48:40.956794980 -0500
> +++ linux/arch/arm64/kernel/debug-monitors.c 2013-08-26 13:48:40.952795024 -0500
...
> Index: linux/arch/arm64/kernel/hw_breakpoint.c
> ===================================================================
> --- linux.orig/arch/arm64/kernel/hw_breakpoint.c 2013-08-26 13:48:40.956794980 -0500
> +++ linux/arch/arm64/kernel/hw_breakpoint.c 2013-08-26 13:48:40.952795024 -0500
...
> Index: linux/arch/arm64/kernel/perf_event.c
> ===================================================================
> --- linux.orig/arch/arm64/kernel/perf_event.c 2013-08-26 13:48:40.956794980 -0500
> +++ linux/arch/arm64/kernel/perf_event.c 2013-08-26 13:48:40.952795024 -0500

For the arm64 bits:

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>
--
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/