Skip to contentSkip to conversation

ips: use interruptible waits in ips-monitor

PATCH New Jesse Barnes 1 participant 1 message Mar 25, 2011 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ips: use interruptible waits in ips-monitor

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.

drivers/platform/x86/intel_ips.c +1 -1
index 1294a39..85c8ad4 100644
@@ -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();