From: Jiri Kosina Date: Mon, 26 Oct 2015 03:02:01 +0000 (+0100) Subject: ACPI / PAD: power_saving_thread() is not freezable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21657471688508ced523b3bf0a763d73d546ad1a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ACPI / PAD: power_saving_thread() is not freezable power_saving_thread() calls try_to_freeze(), but the thread doesn't mark itself freezable through set_freezable(), so the try_to_freeze() call is useless. Signed-off-by: Jiri Kosina Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index ae307ff36acb..8ea8211b2d58 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -148,8 +148,6 @@ static int power_saving_thread(void *data) while (!kthread_should_stop()) { unsigned long expire_time; - try_to_freeze(); - /* round robin to cpus */ expire_time = last_jiffies + round_robin_time * HZ; if (time_before(expire_time, jiffies)) {