]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/blackfin/include/asm/percpu.h
Blackfin arch: SMP supporting patchset: Blackfin header files and machine common...
[net-next-2.6.git] / arch / blackfin / include / asm / percpu.h
index 78dd61f6b39fd7f1ee284d0fa86d164ff5cee246..797c0c1650695291e2c99f0e8a632c529674b1cf 100644 (file)
@@ -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__ */