Messages in this thread | | | Date | Fri, 2 Oct 2009 11:34:53 +0200 | From | Ingo Molnar <> | Subject | Re: [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
| |