summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
authorKeith Packard <keithp@koto.keithp.com>2007-11-07 16:33:10 -0800
committerKeith Packard <keithp@koto.keithp.com>2007-11-07 16:33:10 -0800
commit0e9ef65fa583bf2393dd0fda82df6f092387b425 (patch)
tree3eb6389960bec52099bcceea8c7459729aa1d515 /os
parente94ab0b502160376d1956345196f7e1c7e2e886f (diff)
Don't frob timers unless SmartSchedule is running
Diffstat (limited to 'os')
-rw-r--r--os/utils.c4
1 files changed, 4 insertions, 0 deletions
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;