diff options
author | Jeremy Fitzhardinge <jeremy@goop.org> | 2007-05-02 13:27:16 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-05-02 13:27:16 -0400 |
commit | 1956c73bb5bf81ee577ed7d3c64e3cad876ad2a5 (patch) | |
tree | 4e47be7446a6c9e42cbf03410280b7c06ad4e841 | |
parent | 978c038ec944e4f2c940b0975c6acb433203a9be (diff) |
[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 <jeremy@xensource.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andi Kleen <ak@suse.de>
-rw-r--r-- | include/asm-i386/percpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
47 | /* This is used for other cpus to find our section. */ | 47 | /* This is used for other cpus to find our section. */ |
48 | extern unsigned long __per_cpu_offset[]; | 48 | extern unsigned long __per_cpu_offset[]; |
49 | 49 | ||
50 | #define per_cpu_offset(x) (__per_cpu_offset[x]) | ||
51 | |||
50 | /* Separate out the type, so (int[3], foo) works. */ | 52 | /* Separate out the type, so (int[3], foo) works. */ |
51 | #define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name | 53 | #define DECLARE_PER_CPU(type, name) extern __typeof__(type) per_cpu__##name |
52 | #define DEFINE_PER_CPU(type, name) \ | 54 | #define DEFINE_PER_CPU(type, name) \ |