diff options
Diffstat (limited to 'include/asm-ia64')
-rw-r--r-- | include/asm-ia64/percpu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asm-ia64/percpu.h b/include/asm-ia64/percpu.h index 26404b77f007..77f30b664b4e 100644 --- a/include/asm-ia64/percpu.h +++ b/include/asm-ia64/percpu.h | |||
@@ -15,18 +15,20 @@ | |||
15 | 15 | ||
16 | #include <linux/threads.h> | 16 | #include <linux/threads.h> |
17 | 17 | ||
18 | #ifdef CONFIG_SMP | ||
19 | |||
18 | #ifdef HAVE_MODEL_SMALL_ATTRIBUTE | 20 | #ifdef HAVE_MODEL_SMALL_ATTRIBUTE |
19 | # define PER_CPU_ATTRIBUTES __attribute__((__model__ (__small__))) | 21 | # define PER_CPU_ATTRIBUTES __attribute__((__model__ (__small__))) |
20 | #endif | 22 | #endif |
21 | 23 | ||
22 | #ifdef CONFIG_SMP | ||
23 | |||
24 | #define __my_cpu_offset __ia64_per_cpu_var(local_per_cpu_offset) | 24 | #define __my_cpu_offset __ia64_per_cpu_var(local_per_cpu_offset) |
25 | 25 | ||
26 | extern void *per_cpu_init(void); | 26 | extern void *per_cpu_init(void); |
27 | 27 | ||
28 | #else /* ! SMP */ | 28 | #else /* ! SMP */ |
29 | 29 | ||
30 | #define PER_CPU_ATTRIBUTES __attribute__((__section__(".data.percpu"))) | ||
31 | |||
30 | #define per_cpu_init() (__phys_per_cpu_start) | 32 | #define per_cpu_init() (__phys_per_cpu_start) |
31 | 33 | ||
32 | #endif /* SMP */ | 34 | #endif /* SMP */ |