Message ID | E1r5R36-00Csz0-Px@rmk-PC.armlinux.org.uk |
---|---|
State | New |
Headers | show |
Series | [01/21] arch_topology: Make register_cpu_capacity_sysctl() tolerant to late CPUs | expand |
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 9ea22e165acd..34b48f660b6b 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -533,7 +533,7 @@ static void __init cpu_dev_register_generic(void) #ifdef CONFIG_GENERIC_CPU_DEVICES int i; - for_each_possible_cpu(i) { + for_each_present_cpu(i) { if (register_cpu(&per_cpu(cpu_devices, i), i)) panic("Failed to register CPU device"); }