From e77d7f714380afeeb3ce454e4e742e9988cedff0 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Fri, 15 Aug 2008 21:03:13 +0000 Subject: [PATCH] Add flag to indicate to xen support code that threads are running (and thus we can block). MFC after: 1 month --- sys/kern/init_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index d476904fa56..f726d27efa5 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -592,6 +592,8 @@ static int init_shutdown_timeout = INIT_SHUTDOWN_TIMEOUT; SYSCTL_INT(_kern, OID_AUTO, init_shutdown_timeout, CTLFLAG_RW, &init_shutdown_timeout, 0, ""); +int scheduler_running = 0; + /* * Start the initial user process; try exec'ing each pathname in init_path. * The program is invoked with one argument containing the boot flags. @@ -607,6 +609,7 @@ start_init(void *dummy) struct thread *td; struct proc *p; + scheduler_running = 1; mtx_lock(&Giant); GIANT_REQUIRED;