Commit 730cf272 authored by Mike Travis's avatar Mike Travis Committed by Ingo Molnar
Browse files

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: default avatarMike Travis <>
Acked-by: default avatarRusty Russell <>
Signed-off-by: default avatarIngo Molnar <>
parent 6bdf197b
......@@ -1298,6 +1298,8 @@ __init void prefill_possible_map(void)
possible = setup_possible_cpus;
total_cpus = max_t(int, possible, num_processors + disabled_cpus);
if (possible > CONFIG_NR_CPUS) {
"%d Processors exceeds NR_CPUS limit of %d\n",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment