From: Jeremy Fitzhardinge Date: Wed, 2 May 2007 17:27:16 +0000 (+0200) Subject: [PATCH] i386: Define per_cpu_offset X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1956c73bb5bf81ee577ed7d3c64e3cad876ad2a5;p=openwrt%2Fstaging%2Fblogic.git [PATCH] i386: Define per_cpu_offset Define per_cpu_offset in asm-i386/percpu.h when SMP defined, like asm-generic/percpu.h does for UP. Signed-off-by: Jeremy Fitzhardinge Signed-off-by: Andi Kleen Cc: Rusty Russell Cc: Andi Kleen --- diff --git a/include/asm-i386/percpu.h b/include/asm-i386/percpu.h index cdcb63db30a9..f54830b5d5ac 100644 --- a/include/asm-i386/percpu.h +++ b/include/asm-i386/percpu.h @@ -47,6 +47,8 @@ /* This is used for other cpus to find our section. */ extern unsigned long __per_cpu_offset[]; +#define per_cpu_offset(x) (__per_cpu_offset[x]) + /* Separate out the type, so (int[3], foo) works. */ #define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name #define DEFINE_PER_CPU(type, name) \