PERFORCE change 132281 for review

Kip Macy kmacy at FreeBSD.org
Tue Jan 1 20:10:33 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=132281

Change 132281 by kmacy at pandemonium:kmacy:xen31 on 2008/01/02 04:09:54

	indicate to the rest of the system that it is safe to sleep

Affected files ...

.. //depot/projects/xen31/sys/kern/init_main.c#6 edit

Differences ...

==== //depot/projects/xen31/sys/kern/init_main.c#6 (text+ko) ====

@@ -583,6 +583,8 @@
 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.
@@ -598,6 +600,7 @@
 	struct thread *td;
 	struct proc *p;
 
+	scheduler_running = 1;
 	mtx_lock(&Giant);
 
 	GIANT_REQUIRED;


More information about the p4-projects mailing list