[PATCH 30/35] [PATCH 30/36] avr32: Replace __get_cpu_var with __this_cpu_write

Christoph Lameter
2014-08-17T17:33:33Z

[-- Attachment #1: 0030-avr32-Replace-__get_cpu_var-with-__this_cpu_write.patch --]
[-- Type: text/plain, Size: 769 bytes --]

Replace the single use of __get_cpu_var in avr32 with
__this_cpu_write.

Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no>
Signed-off-by: Christoph Lameter <cl@linux.com>
---
arch/avr32/kernel/kprobes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/arch/avr32/kernel/kprobes.c
===================================================================
--- linux.orig/arch/avr32/kernel/kprobes.c
+++ linux/arch/avr32/kernel/kprobes.c
@@ -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)