summaryrefslogtreecommitdiff
path: root/os/utils.c
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2010-08-04 16:12:59 +0300
committerTiago Vignatti <tiago.vignatti@nokia.com>2010-09-10 21:49:29 +0300
commit7d8cabd027cfc55e9921307e5b3dd7052de8496f (patch)
tree6ace6a14cf30886f6cae508dba3cbfefa6c15893 /os/utils.c
parentd9c18c3b9badf38d499e3f53291bd23fda3c4340 (diff)
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>
Diffstat (limited to 'os/utils.c')
-rw-r--r--os/utils.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/os/utils.c b/os/utils.c
index cc942e954..8921d7c5f 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -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