lkml.org 
[lkml]   [2014]   [Feb]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 44/48] avr32: Replace __get_cpu_var with __this_cpu_write
    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>

    Index: linux/arch/avr32/kernel/kprobes.c
    ===================================================================
    --- linux.orig/arch/avr32/kernel/kprobes.c 2013-12-02 16:08:00.844326498 -0600
    +++ linux/arch/avr32/kernel/kprobes.c 2013-12-02 16:08:00.834326779 -0600
    @@ -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)


    \
     
     \ /
      Last update: 2014-02-14 23:01    [W:2.659 / U:0.024 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site