diff options
author | Brian Gerst <brgerst@gmail.com> | 2009-02-08 17:58:38 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-09 12:30:29 +0300 |
commit | d3770449d3cb058b94ca1d050d5ced4a66c75ce4 (patch) | |
tree | 5e546795ca8bf8431f9a176d20a3c4691a60ac9a /include/linux/percpu.h | |
parent | 56fc82c5360cdf0b250b5eb74f38657b0402faa5 (diff) | |
download | linux-d3770449d3cb058b94ca1d050d5ced4a66c75ce4.tar.xz |
percpu: make PER_CPU_BASE_SECTION overridable by arches
Impact: bug fix
IA-64 needs to put percpu data in the seperate section even on UP.
Fixes regression caused by "percpu: refactor percpu.h"
Signed-off-by: Brian Gerst <brgerst@gmail.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/percpu.h')
-rw-r--r-- | include/linux/percpu.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 0e24202b5a4e..3577ffd90d45 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -8,8 +8,15 @@ #include <asm/percpu.h> +#ifndef PER_CPU_BASE_SECTION #ifdef CONFIG_SMP #define PER_CPU_BASE_SECTION ".data.percpu" +#else +#define PER_CPU_BASE_SECTION ".data" +#endif +#endif + +#ifdef CONFIG_SMP #ifdef MODULE #define PER_CPU_SHARED_ALIGNED_SECTION "" @@ -20,7 +27,6 @@ #else -#define PER_CPU_BASE_SECTION ".data" #define PER_CPU_SHARED_ALIGNED_SECTION "" #define PER_CPU_FIRST_SECTION "" |