From owner-cvs-all Sat Jul 13 20:45:21 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 5CF0E37B400; Sat, 13 Jul 2002 20:45:14 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A328343E7B; Sat, 13 Jul 2002 20:44:39 -0700 (PDT) (envelope-from julian@FreeBSD.org) Received: from freefall.freebsd.org (julian@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6E3hYJU016003; Sat, 13 Jul 2002 20:43:34 -0700 (PDT) (envelope-from julian@freefall.freebsd.org) Received: (from julian@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6E3hYSY016002; Sat, 13 Jul 2002 20:43:34 -0700 (PDT) Message-Id: <200207140343.g6E3hYSY016002@freefall.freebsd.org> From: Julian Elischer Date: Sat, 13 Jul 2002 20:43:34 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys proc.h src/sys/kern init_main.c kern_fork.c kern_idle.c kern_proc.c kern_switch.c kern_synch.c kern_thread.c X-FreeBSD-CVS-Branch: HEAD 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 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 Revision Changes Path 1.198 +1 -1 src/sys/kern/init_main.c 1.153 +1 -3 src/sys/kern/kern_fork.c 1.24 +1 -5 src/sys/kern/kern_idle.c 1.141 +0 -2 src/sys/kern/kern_proc.c 1.33 +10 -131 src/sys/kern/kern_switch.c 1.185 +4 -13 src/sys/kern/kern_synch.c 1.6 +0 -3 src/sys/kern/kern_thread.c 1.229 +1 -1 src/sys/sys/proc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message