Messages in this thread | | | Date | Tue, 31 Mar 2009 23:17:03 +0400 | From | Ivan Kokshaysky <> | Subject | Re: [GIT RFC] percpu: use dynamic percpu allocator as the default percpu allocator |
| |
On Tue, Mar 31, 2009 at 06:54:31PM +0200, Martin Schwidefsky wrote: > I got the dynamic cpu allocator to work with the patch below. Anybody > with an objection against the SHIFT_PERCPU_VAR macro ?
That's fine with me.
> --- linux-next/arch/alpha/include/asm/percpu.h 2009-03-31 15:55:03.000000000 +0200 > +++ linux-s390/arch/alpha/include/asm/percpu.h 2009-03-31 15:55:46.000000000 +0200 > @@ -47,6 +47,8 @@ extern unsigned long __per_cpu_offset[NR > : "=&r"(__ptr), "=&r"(tmp_gp)); \ > (typeof(&per_cpu_var(var)))(__ptr + (offset)); }) > > +#define SHIFT_PERCPU_VAR(var, offset) SHIFT_PERCPU_PTR(var, offset) > +
No, just do s/SHIFT_PERCPU_PTR/SHIFT_PERCPU_VAR/ in arch/alpha/include/asm/percpu.h and the rest of your patch would fix alpha as well.
Ivan.
| |