Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Adam Jackson
xserver
Commits
0e9ef65f
Commit
0e9ef65f
authored
Nov 07, 2007
by
Keith Packard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't frob timers unless SmartSchedule is running
parent
e94ab0b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
os/utils.c
os/utils.c
+4
-0
No files found.
os/utils.c
View file @
0e9ef65f
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment