summaryrefslogtreecommitdiffstats
path: root/include/asm-sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-12-15 08:40:57 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-17 23:06:59 +0100
commit5a089006bf8b59f6610de11a857854d8f8730658 (patch)
tree24c0aeec426d6baa9cbfc2433c77e9892aacec55 /include/asm-sparc64
parent[SUNKBD]: Fix sunkbd_enable(sunkbd, 0); obvious. (diff)
downloadlinux-5a089006bf8b59f6610de11a857854d8f8730658.tar.xz
linux-5a089006bf8b59f6610de11a857854d8f8730658.zip
[SPARC64]: Mirror x86_64's PERCPU_ENOUGH_ROOM definition.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/asm-sparc64')
-rw-r--r--include/asm-sparc64/percpu.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-sparc64/percpu.h b/include/asm-sparc64/percpu.h
index ced8cbde046d..0d3df76aa47f 100644
--- a/include/asm-sparc64/percpu.h
+++ b/include/asm-sparc64/percpu.h
@@ -5,6 +5,16 @@
#ifdef CONFIG_SMP
+#ifdef CONFIG_MODULES
+# define PERCPU_MODULE_RESERVE 8192
+#else
+# define PERCPU_MODULE_RESERVE 0
+#endif
+
+#define PERCPU_ENOUGH_ROOM \
+ (ALIGN(__per_cpu_end - __per_cpu_start, SMP_CACHE_BYTES) + \
+ PERCPU_MODULE_RESERVE)
+
extern void setup_per_cpu_areas(void);
extern unsigned long __per_cpu_base;