From owner-freebsd-arch Mon Dec 11 14: 2:10 2000 From owner-freebsd-arch@FreeBSD.ORG Mon Dec 11 14:02:08 2000 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 2708437B400 for ; Mon, 11 Dec 2000 14:02:08 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by pike.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id eBBM26E58594 for ; Mon, 11 Dec 2000 14:02:06 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Mon, 11 Dec 2000 14:02:22 -0800 (PST) From: John Baldwin To: arch@FreeBSD.org Subject: curpriority... Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Well, it seems that curpriority is a bit bogus right now. First of all, it is only set in msleep/mawait when a process resumes. Shouldn't it be set at the end of mi_switch() when a process resumes instead, so that it is set for every process switch? Was it only done in tsleep/await before as an optimization of some sort? Secondly, it probably needs to become a per-CPU data variable, rather than one that is global to the entire system.. Comments? -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message