diff options
author | Keith Packard <keithp@keithp.com> | 2015-11-11 22:02:01 -0800 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2015-12-01 13:54:54 -0500 |
commit | e10ba9e4b52269b2ac75c4802dce4ca47d169657 (patch) | |
tree | 653de4bab7b3ca2b2b1fd41aaaf35af81e78c69f /include | |
parent | c7f4aef8f45e500c900d59f68c653477148907ea (diff) |
Remove non-smart scheduler. Don't require setitimer.
This allows the server to call GetTimeInMillis() after each request is
processed to avoid needing setitimer. -dumbSched now turns off the
setitimer.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/dix-config.h.in | 3 | ||||
-rw-r--r-- | include/dixstruct.h | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/dix-config.h.in b/include/dix-config.h.in index 112ab952f..940d2b7e2 100644 --- a/include/dix-config.h.in +++ b/include/dix-config.h.in @@ -518,4 +518,7 @@ /* Define if no local socket credentials interface exists */ #undef NO_LOCAL_CLIENT_CRED +/* Have setitimer support */ +#undef HAVE_SETITIMER + #endif /* _DIX_CONFIG_H_ */ diff --git a/include/dixstruct.h b/include/dixstruct.h index 757506623..8e70ae1fa 100644 --- a/include/dixstruct.h +++ b/include/dixstruct.h @@ -130,7 +130,11 @@ extern long SmartScheduleTime; extern long SmartScheduleInterval; extern long SmartScheduleSlice; extern long SmartScheduleMaxSlice; -extern Bool SmartScheduleDisable; +#if HAVE_SETITIMER +extern Bool SmartScheduleSignalEnable; +#else +#define SmartScheduleSignalEnable FALSE +#endif extern void SmartScheduleStartTimer(void); extern void SmartScheduleStopTimer(void); |