summaryrefslogtreecommitdiffstats
path: root/sys/kern/init_main.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-08-15 21:03:13 +0000
committerkmacy <kmacy@FreeBSD.org>2008-08-15 21:03:13 +0000
commit716fc7636759ba9771e795a9311da5fd86a50a68 (patch)
tree0593fcd2e93761953d920b8a828e1e49e47c60df /sys/kern/init_main.c
parente30bc9a875b87df7e25b1ae97e57219c788610dc (diff)
downloadFreeBSD-src-716fc7636759ba9771e795a9311da5fd86a50a68.zip
FreeBSD-src-716fc7636759ba9771e795a9311da5fd86a50a68.tar.gz
Add flag to indicate to xen support code that threads are running (and thus we can block).
MFC after: 1 month
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r--sys/kern/init_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index d476904..f726d27 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;
OpenPOWER on IntegriCloud