From owner-cvs-all Mon Jul 15 6: 3:16 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16B3E37B407 for ; Mon, 15 Jul 2002 06:03:09 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE0DC43E6D for ; Mon, 15 Jul 2002 06:03:07 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 19025 invoked from network); 15 Jul 2002 13:03:06 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 15 Jul 2002 13:03:06 -0000 Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g6FD35048288; Mon, 15 Jul 2002 09:03:05 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200207140343.g6E3hYSY016002@freefall.freebsd.org> Date: Mon, 15 Jul 2002 09:03:16 -0400 (EDT) From: John Baldwin To: Julian Elischer Subject: RE: cvs commit: src/sys/sys proc.h src/sys/kern init_main.c kern Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 <>< 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