]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
ips: use interruptible waits in ips-monitor
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 28 Mar 2011 10:36:30 +0000 (06:36 -0400)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:46:15 +0000 (06:46 -0400)
This is what I intended to do since:
  1) the driver handles variable waits just fine, and
  2) interruptible waits aren't reported as load in the load avg.

Reported-and-tested-by: Andreas Hartmann <andihartmann@freenet.de>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_ips.c

index 1294a39373bab688fbc8ce14a777a8811c66c7b2..85c8ad43c0c5821f1e38ca2572ff02799324f014 100644 (file)
@@ -1111,7 +1111,7 @@ static int ips_monitor(void *data)
                last_msecs = jiffies_to_msecs(jiffies);
                expire = jiffies + msecs_to_jiffies(IPS_SAMPLE_PERIOD);
 
-               __set_current_state(TASK_UNINTERRUPTIBLE);
+               __set_current_state(TASK_INTERRUPTIBLE);
                mod_timer(&timer, expire);
                schedule();