summaryrefslogtreecommitdiffstats
path: root/arch/blackfin/include/asm/percpu.h
diff options
context:
space:
mode:
authorGraf Yang2009-01-07 16:14:39 +0100
committerBryan Wu2009-01-07 16:14:39 +0100
commit6b3087c64a92a36ae20d33479b4df6d7afc910d4 (patch)
tree95984fc623658ebf150d0d912a7f6c5a0301a5a9 /arch/blackfin/include/asm/percpu.h
parentBlackfin arch: SMP supporting patchset: BF561 related code (diff)
downloadkernel-qcow2-linux-6b3087c64a92a36ae20d33479b4df6d7afc910d4.tar.gz
kernel-qcow2-linux-6b3087c64a92a36ae20d33479b4df6d7afc910d4.tar.xz
kernel-qcow2-linux-6b3087c64a92a36ae20d33479b4df6d7afc910d4.zip
Blackfin arch: SMP supporting patchset: Blackfin header files and machine common code
Blackfin dual core BF561 processor can support SMP like features. https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:smp-like In this patch, we provide SMP extend to Blackfin header files and machine common code Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/include/asm/percpu.h')
-rw-r--r--arch/blackfin/include/asm/percpu.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/blackfin/include/asm/percpu.h b/arch/blackfin/include/asm/percpu.h
index 78dd61f6b39f..797c0c165069 100644
--- a/arch/blackfin/include/asm/percpu.h
+++ b/arch/blackfin/include/asm/percpu.h
@@ -3,4 +3,14 @@
#include <asm-generic/percpu.h>
-#endif /* __ARCH_BLACKFIN_PERCPU__ */
+#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)
+
+#endif /* __ARCH_BLACKFIN_PERCPU__ */