aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-12-14 23:40:57 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-17 14:06:59 -0800
commit5a089006bf8b59f6610de11a857854d8f8730658 (patch)
tree24c0aeec426d6baa9cbfc2433c77e9892aacec55 /arch
parent[SUNKBD]: Fix sunkbd_enable(sunkbd, 0); obvious. (diff)
downloadlinux-dev-5a089006bf8b59f6610de11a857854d8f8730658.tar.xz
linux-dev-5a089006bf8b59f6610de11a857854d8f8730658.zip
[SPARC64]: Mirror x86_64's PERCPU_ENOUGH_ROOM definition.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r--arch/sparc64/kernel/smp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c
index cc09d8266414..0a4958536bcd 100644
--- a/arch/sparc64/kernel/smp.c
+++ b/arch/sparc64/kernel/smp.c
@@ -1447,11 +1447,8 @@ void __init setup_per_cpu_areas(void)
char *ptr;
/* Copy section for each CPU (we discard the original) */
- goal = ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES);
-#ifdef CONFIG_MODULES
- if (goal < PERCPU_ENOUGH_ROOM)
- goal = PERCPU_ENOUGH_ROOM;
-#endif
+ goal = PERCPU_ENOUGH_ROOM;
+
__per_cpu_shift = 0;
for (size = 1UL; size < goal; size <<= 1UL)
__per_cpu_shift++;