PERFORCE change 50317 for review

Julian Elischer julian at FreeBSD.org
Sat Apr 3 23:00:52 PST 2004


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

Change 50317 by julian at julian_jules1 on 2004/04/03 23:00:45

	hack on hack.. clean this up soon.

Affected files ...

.. //depot/projects/nsched/sys/kern/init_main.c#5 edit
.. //depot/projects/nsched/sys/kern/scheduler/4bsd/sched_4bsd_kse.c#6 edit

Differences ...

==== //depot/projects/nsched/sys/kern/init_main.c#5 (text+ko) ====

@@ -335,10 +335,10 @@
 	 * Initialize thread, process and pgrp structures.
 	 * Note, proc_linkup calls scheduler init routines for
 	 * per-thread and per-ksegrp schedular areas which will undo
-	 * what schedinit() does, so call that AFTER the proc_linkup.
+	 * what schedinit() does,  but that requires that schedinit has run
+	 * so schedinit calls proc_linkup.
 	 * XXXKSE needs cleaning up.
 	 */
-	proc_linkup(&proc0, &ksegrp0, &thread0);
 	procinit();	/* set up proc zone */
 	threadinit();	/* set up thead, upcall and KSEGRP zones */
 	schedinit();	/* scheduler gets its house in order */

==== //depot/projects/nsched/sys/kern/scheduler/4bsd/sched_4bsd_kse.c#6 (text+ko) ====

@@ -86,6 +86,7 @@
 	proc0.p_sched = NULL; /* XXX */
 	thread0.td_sched = &td_sched0;
 
+	proc_linkup(&proc0, &ksegrp0, &thread0);
 	kse0.ke_state = KES_THREAD;
 	kse_link(&proc0, &kse0, &ksegrp0);
 	kse0.ke_thread = &thread0;


More information about the p4-projects mailing list