@@ -134,6 +134,11 @@ config NO_HZ_FULL_ALL
Note the boot CPU will still be kept outside the range to
handle the timekeeping duty.
+config NR_CPUS_REALLY
+ int "Fixed version of NR_CPUS"
+ default 1 if !SMP
+ default NR_CPUS if SMP
+
config NO_HZ_FULL_SYSIDLE
bool "Detect full-system idle state for full dynticks system"
depends on NO_HZ_FULL
@@ -160,7 +165,7 @@ config NO_HZ_FULL_SYSIDLE
config NO_HZ_FULL_SYSIDLE_SMALL
int "Number of CPUs above which large-system approach is used"
depends on NO_HZ_FULL_SYSIDLE
- range 1 NR_CPUS
+ range 1 NR_CPUS_REALLY
default 8
help
The full-system idle detection mechanism takes a lazy approach