]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/cpu.c
sysfs: fix build errors: uevent with CONFIG_SYSFS=n
[mirror_ubuntu-artful-kernel.git] / kernel / cpu.c
index 7406fe6966f908cb547fba3de5fcf5d566f831ea..3d4206ada5c9d970c0806348a75424f30f7adbac 100644 (file)
@@ -309,6 +309,8 @@ void enable_nonboot_cpus(void)
        mutex_lock(&cpu_add_remove_lock);
        cpu_hotplug_disabled = 0;
        mutex_unlock(&cpu_add_remove_lock);
+       if (cpus_empty(frozen_cpus))
+               return;
 
        printk("Enabling non-boot CPUs ...\n");
        for_each_cpu_mask(cpu, frozen_cpus) {