aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/power/user.c b/kernel/power/user.c
index 72825c853cd7..93b5dd283dea 100644
--- a/kernel/power/user.c
+++ b/kernel/power/user.c
@@ -145,10 +145,10 @@ static int snapshot_ioctl(struct inode *inode, struct file *filp,
145 error = freeze_processes(); 145 error = freeze_processes();
146 if (error) { 146 if (error) {
147 thaw_processes(); 147 thaw_processes();
148 enable_nonboot_cpus();
148 error = -EBUSY; 149 error = -EBUSY;
149 } 150 }
150 } 151 }
151 enable_nonboot_cpus();
152 up(&pm_sem); 152 up(&pm_sem);
153 if (!error) 153 if (!error)
154 data->frozen = 1; 154 data->frozen = 1;