Freezer: use __set_current_state in refrigerator
Use __set_current_state() as appropriate in refrigerator() instead of accessing current->state directly. Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Acked-by: Pavel Machek <pavel@ucw.cz> Cc: Gautham R Shenoy <ego@in.ibm.com> Cc: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
0c1eecfb34
commit
f4a3a7d60c
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ void refrigerator(void)
|
|||
schedule();
|
||||
}
|
||||
pr_debug("%s left refrigerator\n", current->comm);
|
||||
current->state = save;
|
||||
__set_current_state(save);
|
||||
}
|
||||
|
||||
static void freeze_task(struct task_struct *p)
|
||||
|
|
Loading…
Reference in a new issue