Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Apr 2004 23:00:50 -0800 (PST)
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 50317 for review
Message-ID:  <200404040700.i3470oPC013507@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=50317

Change 50317 by julian@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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404040700.i3470oPC013507>