From: Rafael J. Wysocki Date: Thu, 19 Jul 2007 08:47:33 +0000 (-0700) Subject: Freezer: use __set_current_state in refrigerator X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4a3a7d60c9c9a961e4c970f6eb41dd1c9d3ec21;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Pavel Machek Cc: Gautham R Shenoy Cc: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/power/process.c b/kernel/power/process.c index e1bcdedd1464..9b5301c73b83 100644 --- a/kernel/power/process.c +++ b/kernel/power/process.c @@ -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)