X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fbounds.c;h=e8ca97b5c386dc8a7e5374ab0aae48091fc30b6d;hb=1cd8fd96b0bc58f94d9671c63f5e5e2f3419f688;hp=0c9b862292b26dc0494f771f96532fd8995c2b3b;hpb=4cb1f43ce8c72ee453c00fcb9f6ee9c4ebd03f98;p=karo-tx-linux.git diff --git a/kernel/bounds.c b/kernel/bounds.c index 0c9b862292b2..e8ca97b5c386 100644 --- a/kernel/bounds.c +++ b/kernel/bounds.c @@ -10,6 +10,7 @@ #include #include #include +#include void foo(void) { @@ -17,5 +18,8 @@ void foo(void) DEFINE(NR_PAGEFLAGS, __NR_PAGEFLAGS); DEFINE(MAX_NR_ZONES, __MAX_NR_ZONES); DEFINE(NR_PCG_FLAGS, __NR_PCG_FLAGS); +#ifdef CONFIG_SMP + DEFINE(NR_CPUS_BITS, ilog2(CONFIG_NR_CPUS)); +#endif /* End of constants */ }