From: Cristiano Giuffrida Date: Fri, 4 Jun 2010 18:08:15 +0000 (+0000) Subject: Put initialization code where it belongs. X-Git-Tag: v3.1.8~501 X-Git-Url: http://zhaoyanbai.com/repos/Bv9ARM.ch07.html?a=commitdiff_plain;h=354d88f88336a261a259fbdb4735c969eefb6667;p=minix.git Put initialization code where it belongs. --- diff --git a/servers/pm/main.c b/servers/pm/main.c index 56da25b61..f37f5df93 100644 --- a/servers/pm/main.c +++ b/servers/pm/main.c @@ -63,7 +63,6 @@ PUBLIC int main() /* SEF local startup. */ sef_local_startup(); - sched_init(); /* initialize user-space scheduling */ /* This is PM's main loop- get work and do it, forever and forever. */ while (TRUE) { @@ -304,6 +303,9 @@ PRIVATE int sef_cb_init_fresh(int type, sef_init_info_t *info) unmap_ok = 1; _minix_unmapzero(); + /* Initialize user-space scheduling. */ + sched_init(); + return(OK); }