X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=kernel%2Fbounds.c;h=5253204afdcace55e89cda669aaf2896eba23aaa;hb=869526b958f59592c46086c11f638824b08d164a;hp=0c9b862292b26dc0494f771f96532fd8995c2b3b;hpb=5e58e5283a0a0a99ee970e7e5c80c6541693376e;p=cascardo%2Flinux.git diff --git a/kernel/bounds.c b/kernel/bounds.c index 0c9b862292b2..5253204afdca 100644 --- a/kernel/bounds.c +++ b/kernel/bounds.c @@ -10,6 +10,8 @@ #include #include #include +#include +#include void foo(void) { @@ -17,5 +19,9 @@ 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 + DEFINE(BLOATED_SPINLOCKS, sizeof(spinlock_t) > sizeof(int)); /* End of constants */ }