diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 7431ba6fc2d4fcdd2c4f740c15a94c86a751c1d3..1d110dc6f0c1f371ac262a9f6e352b5d626bf2fa 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -265,6 +265,7 @@ int __cpuinit register_cpu(struct cpu *cpu, int num) cpu->dev.bus = &cpu_subsys; cpu->dev.release = cpu_device_release; cpu->dev.offline_disabled = !cpu->hotpluggable; + cpu->dev.offline = !cpu_online(num); #ifdef CONFIG_ARCH_HAS_CPU_AUTOPROBE cpu->dev.bus->uevent = arch_cpu_uevent; #endif