From owner-svn-src-all@freebsd.org Thu Apr 21 18:41:02 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 805B6B1858B; Thu, 21 Apr 2016 18:41:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4AE891FE3; Thu, 21 Apr 2016 18:41:01 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id CD6151FE024; Thu, 21 Apr 2016 20:40:59 +0200 (CEST) Subject: Re: svn commit: r298426 - head/sys/dev/fdc To: John Baldwin , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201604211837.u3LIbalm092252@repo.freebsd.org> From: Hans Petter Selasky Message-ID: <57191F7F.4010900@selasky.org> Date: Thu, 21 Apr 2016 20:44:15 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <201604211837.u3LIbalm092252@repo.freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 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: Thu, 21 Apr 2016 18:41:02 -0000 On 04/21/16 20:37, John Baldwin wrote: > - tsleep(fdc, PRIBIO, "fdcrst", hz); > + if (cold) > + DELAY(1000000); > + else > + tsleep(fdc, PRIBIO, "fdcrst", hz); Hi, pause() and pause_sbt() does exactly this, checking for "cold" and using DELAY(). --HPS