diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/percpu.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index cfda2d5ad319..f052d8184993 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
| @@ -9,30 +9,6 @@ | |||
| 9 | 9 | ||
| 10 | #include <asm/percpu.h> | 10 | #include <asm/percpu.h> |
| 11 | 11 | ||
| 12 | #ifndef PER_CPU_BASE_SECTION | ||
| 13 | #ifdef CONFIG_SMP | ||
| 14 | #define PER_CPU_BASE_SECTION ".data.percpu" | ||
| 15 | #else | ||
| 16 | #define PER_CPU_BASE_SECTION ".data" | ||
| 17 | #endif | ||
| 18 | #endif | ||
| 19 | |||
| 20 | #ifdef CONFIG_SMP | ||
| 21 | |||
| 22 | #ifdef MODULE | ||
| 23 | #define PER_CPU_SHARED_ALIGNED_SECTION "" | ||
| 24 | #else | ||
| 25 | #define PER_CPU_SHARED_ALIGNED_SECTION ".shared_aligned" | ||
| 26 | #endif | ||
| 27 | #define PER_CPU_FIRST_SECTION ".first" | ||
| 28 | |||
| 29 | #else | ||
| 30 | |||
| 31 | #define PER_CPU_SHARED_ALIGNED_SECTION "" | ||
| 32 | #define PER_CPU_FIRST_SECTION "" | ||
| 33 | |||
| 34 | #endif | ||
| 35 | |||
| 36 | #define DEFINE_PER_CPU_SECTION(type, name, section) \ | 12 | #define DEFINE_PER_CPU_SECTION(type, name, section) \ |
| 37 | __attribute__((__section__(PER_CPU_BASE_SECTION section))) \ | 13 | __attribute__((__section__(PER_CPU_BASE_SECTION section))) \ |
| 38 | PER_CPU_ATTRIBUTES __typeof__(type) per_cpu__##name | 14 | PER_CPU_ATTRIBUTES __typeof__(type) per_cpu__##name |
