mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-10 23:33:46 +00:00
os: simplify smart scheduler init process
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
d9c18c3b9b
commit
7d8cabd027
3 changed files with 6 additions and 9 deletions
|
|
@ -1155,14 +1155,14 @@ SmartScheduleTimer (int sig)
|
|||
SmartScheduleTime += SmartScheduleInterval;
|
||||
}
|
||||
|
||||
Bool
|
||||
void
|
||||
SmartScheduleInit (void)
|
||||
{
|
||||
struct sigaction act;
|
||||
|
||||
if (SmartScheduleDisable)
|
||||
return TRUE;
|
||||
|
||||
return;
|
||||
|
||||
memset((char *) &act, 0, sizeof(struct sigaction));
|
||||
|
||||
/* Set up the timer signal function */
|
||||
|
|
@ -1172,9 +1172,8 @@ SmartScheduleInit (void)
|
|||
if (sigaction (SIGALRM, &act, 0) < 0)
|
||||
{
|
||||
perror ("sigaction for smart scheduler");
|
||||
return FALSE;
|
||||
SmartScheduleDisable = TRUE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#ifdef SIG_BLOCK
|
||||
|
|
|
|||
Loading…
Reference in a new issue