提交 f4a3a7d6 编写于 作者: R Rafael J. Wysocki 提交者: Linus Torvalds

Freezer: use __set_current_state in refrigerator

Use __set_current_state() as appropriate in refrigerator() instead of
accessing current->state directly.
Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
Acked-by: NPavel Machek <pavel@ucw.cz>
Cc: Gautham R Shenoy <ego@in.ibm.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 0c1eecfb
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册