diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-10-28 17:56:26 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-11-06 15:46:23 +1100 |
commit | 006177715bb14048766a48e6a672a3fb868dbca7 (patch) | |
tree | 2a1707985ea9c94c447c35c69c15632846e63844 | |
parent | 3fef6875a410170fd2ebb374af254599c29545e7 (diff) |
cpu_alloc: per_cpu_offset is already defined for !CONFIG_SMP
in asm-generic/percpu.h which is included by asm/percpu.h on all
architectures except alpha.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | arch/alpha/include/asm/percpu.h | 1 | ||||
-rw-r--r-- | include/linux/percpu.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/arch/alpha/include/asm/percpu.h b/arch/alpha/include/asm/percpu.h index 3495e8e00d70..4d0f7f3d2817 100644 --- a/arch/alpha/include/asm/percpu.h +++ b/arch/alpha/include/asm/percpu.h @@ -68,6 +68,7 @@ extern unsigned long __per_cpu_offset[NR_CPUS]; #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 per_cpu_offset(x) 0 #define PER_CPU_ATTRIBUTES diff --git a/include/linux/percpu.h b/include/linux/percpu.h index b58ba9ff00dc..a340dfe85169 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -158,7 +158,6 @@ void *cpu_alloc(unsigned long size, gfp_t flags, unsigned long align); void cpu_free(void *cpu_pointer, unsigned long size); #ifndef CONFIG_SMP -#define per_cpu_offset(x) 0 #define SHIFT_PERCPU_PTR(__p, __offset) (__p) #endif |