Re: [guv v2 25/31] avr32: Replace __get_cpu_var uses

From: Hans-Christian Egtvedt
Date: Tue Aug 27 2013 - 02:59:14 EST


Around Mon 26 Aug 2013 20:56:16 +0000 or thereabout, Christoph Lameter wrote:

<snipp reasoning>

> Index: linux/arch/avr32/kernel/kprobes.c
> ===================================================================
> --- linux.orig/arch/avr32/kernel/kprobes.c 2013-08-26 13:25:18.000000000 -0500
> +++ linux/arch/avr32/kernel/kprobes.c 2013-08-26 13:27:09.758485808 -0500
> @@ -104,7 +104,7 @@ static void __kprobes resume_execution(s
>
> static void __kprobes set_current_kprobe(struct kprobe *p)
> {
> - __get_cpu_var(current_kprobe) = p;
> + __this_cpu_write(current_kprobe, p);
> }
>
> static int __kprobes kprobe_handler(struct pt_regs *regs)

Acked-by: Hans-Christian Egtvedt <egtvedt@xxxxxxxxxxxx>

--
mvh
Hans-Christian Egtvedt
--
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/