From owner-svn-src-all@freebsd.org Wed Dec 21 19:32:30 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8BA7C8BBD4; Wed, 21 Dec 2016 19:32:30 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6525B136A; Wed, 21 Dec 2016 19:32:30 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by mail.baldwin.cx (Postfix) with ESMTPSA id A44B610AA28; Wed, 21 Dec 2016 14:32:27 -0500 (EST) From: John Baldwin To: Julian Elischer Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r310336 - head/sys/kern Date: Wed, 21 Dec 2016 11:28:25 -0800 Message-ID: <148295416.6HGrYZ2Ojd@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.0-PRERELEASE; KDE/4.14.10; amd64; ; ) In-Reply-To: References: <201612201944.uBKJiiMg034231@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Wed, 21 Dec 2016 14:32:27 -0500 (EST) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Dec 2016 19:32:30 -0000 On Wednesday, December 21, 2016 02:40:09 PM Julian Elischer wrote: > On 21/12/2016 3:44 AM, John Baldwin wrote: > > Author: jhb > > Date: Tue Dec 20 19:44:44 2016 > > New Revision: 310336 > > URL: https://svnweb.freebsd.org/changeset/base/310336 > > > > Log: > > Don't spin in pause() during early boot for kthreads other than thread0. > > > > pause() uses a spin loop to simulate a sleep during early boot. However, > > we only need this for thread0 to get far enough in the boot process to > > enable timers (at which point pause() can sleep). For other kthreads, > > sleeping in pause() is ok as the callout will be scheduled and will > > eventually fire once thread0 initializes timers. > > maybe we just need to depend on a variable "have_timers" > that is independent of the cold/hot/whatever settings. > first code to enable a timer sets it. Eventually I think some cold checks will devolve to that (and/or cold will just go away). We aren't quite at that point yet however (though we are getting closer). -- John Baldwin