aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/power/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/process.c b/kernel/power/process.c
index eefca8581fa0..2cea2658e985 100644
--- a/kernel/power/process.c
+++ b/kernel/power/process.c
@@ -120,7 +120,7 @@ static unsigned int try_to_freeze_tasks(int freeze_user_space)
120 cancel_freezing(p); 120 cancel_freezing(p);
121 continue; 121 continue;
122 } 122 }
123 if (is_user_space(p) == !freeze_user_space) 123 if (freeze_user_space && !is_user_space(p))
124 continue; 124 continue;
125 125
126 freeze_process(p); 126 freeze_process(p);
@@ -147,7 +147,7 @@ static unsigned int try_to_freeze_tasks(int freeze_user_space)
147 TIMEOUT / HZ, todo); 147 TIMEOUT / HZ, todo);
148 read_lock(&tasklist_lock); 148 read_lock(&tasklist_lock);
149 do_each_thread(g, p) { 149 do_each_thread(g, p) {
150 if (is_user_space(p) == !freeze_user_space) 150 if (freeze_user_space && !is_user_space(p))
151 continue; 151 continue;
152 152
153 task_lock(p); 153 task_lock(p);