From 0e9ef65fa583bf2393dd0fda82df6f092387b425 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 7 Nov 2007 16:33:10 -0800 Subject: Don't frob timers unless SmartSchedule is running --- os/utils.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os/utils.c') diff --git a/os/utils.c b/os/utils.c index 322814669..ae96a4176 100644 --- a/os/utils.c +++ b/os/utils.c @@ -1520,6 +1520,8 @@ SmartScheduleStopTimer (void) #ifdef SMART_SCHEDULE_POSSIBLE struct itimerval timer; + if (SmartScheduleDisable) + return; timer.it_interval.tv_sec = 0; timer.it_interval.tv_usec = 0; timer.it_value.tv_sec = 0; @@ -1534,6 +1536,8 @@ SmartScheduleStartTimer (void) #ifdef SMART_SCHEDULE_POSSIBLE struct itimerval timer; + if (SmartScheduleDisable) + return; timer.it_interval.tv_sec = 0; timer.it_interval.tv_usec = SmartScheduleInterval * 1000; timer.it_value.tv_sec = 0; -- cgit v1.2.3