Commit 730cf27246225d56ca1603b2f3c4fdbf882d4e51

Authored by Mike Travis
Committed by Ingo Molnar
1 parent 6bdf197b04

x86: enable cpus display of kernel_max and offlined cpus

Impact: enables /sys/devices/system/cpu/{kernel_max,offline} user interface

By setting total_cpus, the drivers/base/cpu.c will display the
values of kernel_max (NR_CPUS-1) and the offlined cpu map.

Signed-off-by: Mike Travis <travis@sgi.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

arch/x86/kernel/smpboot.c
... ... @@ -1298,6 +1298,8 @@
1298 1298 else
1299 1299 possible = setup_possible_cpus;
1300 1300  
  1301 + total_cpus = max_t(int, possible, num_processors + disabled_cpus);
  1302 +
1301 1303 if (possible > CONFIG_NR_CPUS) {
1302 1304 printk(KERN_WARNING
1303 1305 "%d Processors exceeds NR_CPUS limit of %d\n",