Date: Mon, 15 Jul 2002 09:03:16 -0400 (EDT) From: John Baldwin <jhb@FreeBSD.org> To: Julian Elischer <julian@FreeBSD.org> Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Subject: RE: cvs commit: src/sys/sys proc.h src/sys/kern init_main.c kern Message-ID: <XFMail.20020715090316.jhb@FreeBSD.org> In-Reply-To: <200207140343.g6E3hYSY016002@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 14-Jul-2002 Julian Elischer wrote: > julian 2002/07/13 20:43:33 PDT > > Modified files: > sys/sys proc.h > sys/kern init_main.c kern_fork.c kern_idle.c > kern_proc.c kern_switch.c kern_synch.c > kern_thread.c > Log: > Thinking about it I came to the conclusion that the KSE states were incorrectly > formulated. The correct states should be: > IDLE: On the idle KSE list for that KSEG > RUNQ: Linked onto the system run queue. > THREAD: Attached to a thread and slaved to whatever state the thread is in. > > This means that most places where we were adjusting kse state can go away > as it is just moving around because the thread is.. > The only places we need to adjust the KSE state is in transition to and from > the idle and run queues. > > Reviewed by: jhb@freebsd.org Actually, I think you might be able to go with juse KES_IDLE and KES_THREAD and use TDS_RUNQ on the thread instead of KES_RUNQ since a KSE should always have a runnable thread attached to it (i.e. a thread in TDS_RUNQ) when it is on a runqueue. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020715090316.jhb>