From owner-cvs-all Fri Jun 7 9:38:25 2002 Delivered-To: cvs-all@freebsd.org Received: from mail.speakeasy.net (mail14.speakeasy.net [216.254.0.214]) by hub.freebsd.org (Postfix) with ESMTP id 671BB37B405 for ; Fri, 7 Jun 2002 09:38:20 -0700 (PDT) Received: (qmail 11088 invoked from network); 7 Jun 2002 16:38:19 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail14.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 7 Jun 2002 16:38:19 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g57GcIF66016; Fri, 7 Jun 2002 12:38:18 -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: <20020607.095516.116907129.imp@village.org> Date: Fri, 07 Jun 2002 12:38:11 -0400 (EDT) From: John Baldwin To: "M. Warner Losh" Subject: Re: cvs commit: src/sys/kern kern_sig.c Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, dwmalone@maths.tcd.ie 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 07-Jun-2002 M. Warner Losh wrote: > In message: > John Baldwin writes: >: You mean the SIGXCPU that is commented out in mi_switch()? It will >: be turned back on when I or someone else figures out how to do it >: safely. :) > > I thought that was commented out due to a bug where time would go > backwards every so often, causing there to be 2^32 or so time to be > charged to the process, which put it over the limit. It's commented out because of locking problems. mi_switch() is often called with p_stat set to something else like SSLEEP or what not. If we block on the proc lock to do the psignal, then when we finally get the lock p_stat will be SRUN. We might be able to do the check at the very end of mi_switch() though. > Warner -- 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