mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-26 03:00:07 +01:00
Don't frob timers unless SmartSchedule is running
This commit is contained in:
parent
e94ab0b502
commit
0e9ef65fa5
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue