diff options
Diffstat (limited to 'arch/sparc/include/asm/percpu_64.h')
-rw-r--r-- | arch/sparc/include/asm/percpu_64.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/sparc/include/asm/percpu_64.h b/arch/sparc/include/asm/percpu_64.h index bee64593023e..c0ab102d11f6 100644 --- a/arch/sparc/include/asm/percpu_64.h +++ b/arch/sparc/include/asm/percpu_64.h | |||
@@ -7,12 +7,12 @@ register unsigned long __local_per_cpu_offset asm("g5"); | |||
7 | 7 | ||
8 | #ifdef CONFIG_SMP | 8 | #ifdef CONFIG_SMP |
9 | 9 | ||
10 | #include <asm/trap_block.h> | ||
11 | |||
10 | extern void real_setup_per_cpu_areas(void); | 12 | extern void real_setup_per_cpu_areas(void); |
11 | 13 | ||
12 | extern unsigned long __per_cpu_base; | ||
13 | extern unsigned long __per_cpu_shift; | ||
14 | #define __per_cpu_offset(__cpu) \ | 14 | #define __per_cpu_offset(__cpu) \ |
15 | (__per_cpu_base + ((unsigned long)(__cpu) << __per_cpu_shift)) | 15 | (trap_block[(__cpu)].__per_cpu_base) |
16 | #define per_cpu_offset(x) (__per_cpu_offset(x)) | 16 | #define per_cpu_offset(x) (__per_cpu_offset(x)) |
17 | 17 | ||
18 | #define __my_cpu_offset __local_per_cpu_offset | 18 | #define __my_cpu_offset __local_per_cpu_offset |