lib/cpumask: add FORCE_NR_CPUS config option
[linux-2.6-microblaze.git] / lib / Kconfig
index dc1ab2e..77ead98 100644 (file)
@@ -527,6 +527,15 @@ config CPUMASK_OFFSTACK
          them on the stack.  This is a bit more expensive, but avoids
          stack overflow.
 
+config FORCE_NR_CPUS
+       bool "NR_CPUS is set to an actual number of CPUs"
+       depends on SMP
+       help
+         Say Yes if you have NR_CPUS set to an actual number of possible
+         CPUs in your system, not to a default value. This forces the core
+         code to rely on compile-time value and optimize kernel routines
+         better.
+
 config CPU_RMAP
        bool
        depends on SMP