]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
ACPI / PAD: power_saving_thread() is not freezable
authorJiri Kosina <jkosina@suse.cz>
Mon, 26 Oct 2015 03:02:01 +0000 (04:02 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Oct 2015 03:42:54 +0000 (04:42 +0100)
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 <jkosina@suse.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_pad.c

index ae307ff36acb9ed76a7a4d360c7c1ad7f99353fa..8ea8211b2d589c6618d5037e40d653a3771edc55 100644 (file)
@@ -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)) {