Date: Sat, 3 Apr 2004 21:20:44 -0800 (PST) From: Julian Elischer <julian@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 50308 for review Message-ID: <200404040520.i345Kiqj091675@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=50308 Change 50308 by julian@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404040520.i345Kiqj091675>