X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fbounds.c;h=e8ca97b5c386dc8a7e5374ab0aae48091fc30b6d;hb=0dcdf6d024c1a73c6396125fcf5293fc865324f1;hp=0c9b862292b26dc0494f771f96532fd8995c2b3b;hpb=93b9c98b3498db5842e2812b32cff4c1ae947eb1;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 */ }