projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] swsusp: Change code ordering in disk.c
[firefly-linux-kernel-4.4.55.git]
/
kernel
/
cpu.c
diff --git
a/kernel/cpu.c
b/kernel/cpu.c
index 7406fe6966f908cb547fba3de5fcf5d566f831ea..3d4206ada5c9d970c0806348a75424f30f7adbac 100644
(file)
--- a/
kernel/cpu.c
+++ b/
kernel/cpu.c
@@
-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) {