lkml.org 
[lkml]   [2009]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [this_cpu_xx V4 01/20] Introduce this_cpu_ptr() and generic this_cpu_* operations

    * cl@linux-foundation.org <cl@linux-foundation.org> wrote:

    > --- linux-2.6.orig/include/asm-generic/percpu.h 2009-10-01 14:14:00.000000000 -0500
    > +++ linux-2.6/include/asm-generic/percpu.h 2009-10-01 14:14:02.000000000 -0500

    > @@ -66,6 +69,8 @@ extern void setup_per_cpu_areas(void);
    > #define per_cpu(var, cpu) (*((void)(cpu), &per_cpu_var(var)))
    > #define __get_cpu_var(var) per_cpu_var(var)
    > #define __raw_get_cpu_var(var) per_cpu_var(var)
    > +#define this_cpu_ptr(ptr) per_cpu_ptr(ptr, 0)
    > +#define __this_cpu_ptr(ptr) this_cpu_ptr(ptr)

    Small detail: please have a look at the existing vertical alignment
    style of the code there and follow it with new entries.

    Thanks,

    Ingo


    \
     
     \ /
      Last update: 2009-10-02 11:39    [W:4.839 / U:0.364 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site