Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3424216 authored by Jesse Barnes's avatar Jesse Barnes Committed by Matthew Garrett
Browse files

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.

Reported-and-tested-by: default avatarAndreas Hartmann <andihartmann@freenet.de>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 70a9b904
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();