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 31/48] uv: Replace __get_cpu_var
    Use __this_cpu_read instead.

    Cc: Hedi Berriche <hedi@sgi.com>
    Cc: Mike Travis <travis@sgi.com>
    Cc: Dimitri Sivanich <sivanich@sgi.com>
    Signed-off-by: Christoph Lameter <cl@linux.com>

    Index: linux/arch/x86/include/asm/uv/uv_hub.h
    ===================================================================
    --- linux.orig/arch/x86/include/asm/uv/uv_hub.h 2014-02-03 14:16:53.987889372 -0600
    +++ linux/arch/x86/include/asm/uv/uv_hub.h 2014-02-03 14:16:53.987889372 -0600
    @@ -618,7 +618,7 @@
    };

    DECLARE_PER_CPU(struct uv_cpu_nmi_s, __uv_cpu_nmi);
    -#define uv_cpu_nmi (__get_cpu_var(__uv_cpu_nmi))
    +#define uv_cpu_nmi __this_cpu_read(_uv_cpu_nmi)
    #define uv_hub_nmi (uv_cpu_nmi.hub)
    #define uv_cpu_nmi_per(cpu) (per_cpu(__uv_cpu_nmi, cpu))
    #define uv_hub_nmi_per(cpu) (uv_cpu_nmi_per(cpu).hub)


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