]> Git Repo - linux.git/commitdiff
ips: use interruptible waits in ips-monitor
authorJesse Barnes <[email protected]>
Mon, 28 Mar 2011 10:36:30 +0000 (06:36 -0400)
committerMatthew Garrett <[email protected]>
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 <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
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();
 
This page took 0.058868 seconds and 4 git commands to generate.