PERFORCE change 50308 for review
Julian Elischer
julian at FreeBSD.org
Sat Apr 3 21:20:45 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=50308
Change 50308 by julian at julian_jules1 on 2004/04/03 21:20:00
Don't clear per_thread sched info after we have just set it up.
Affected files ...
.. //depot/projects/nsched/sys/kern/init_main.c#3 edit
Differences ...
==== //depot/projects/nsched/sys/kern/init_main.c#3 (text+ko) ====
@@ -333,7 +333,12 @@
/*
* 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.
+ * 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 */
@@ -366,7 +371,6 @@
p->p_sysent = &null_sysvec;
- proc_linkup(&proc0, &ksegrp0, &thread0);
p->p_flag = P_SYSTEM;
p->p_sflag = PS_INMEM;
More information about the p4-projects
mailing list