From owner-svn-src-all@FreeBSD.ORG  Mon Aug 29 14:30:19 2011
Return-Path: <owner-svn-src-all@FreeBSD.ORG>
Delivered-To: svn-src-all@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2F05C106566C;
	Mon, 29 Aug 2011 14:30:19 +0000 (UTC)
	(envelope-from hselasky@freebsd.org)
Received: from swip.net (mailfe03.c2i.net [212.247.154.66])
	by mx1.freebsd.org (Postfix) with ESMTP id 289288FC0A;
	Mon, 29 Aug 2011 14:30:17 +0000 (UTC)
X-Cloudmark-Score: 0.000000 []
X-Cloudmark-Analysis: v=1.1 cv=yVKV3zusvCapyMfYJBNW2j35FMEuTKq6vh/tt/1L5+g=
	c=1 sm=1 a=SvYTsOw2Z4kA:10 a=Bjjt3Ia5OwMA:10 a=dBRESv0yCI8A:10
	a=N659UExz7-8A:10 a=CL8lFSKtTFcA:10
	a=i9M/sDlu2rpZ9XS819oYzg==:17 a=5fQSd4wB9WT8dlvhfs8A:9
	a=pILNOxqGKmIA:10 a=i9M/sDlu2rpZ9XS819oYzg==:117
Received: from [188.126.198.129] (account mc467741@c2i.net HELO
	laptop002.hselasky.homeunix.org)
	by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.19)
	with ESMTPA id 4585598; Mon, 29 Aug 2011 16:30:16 +0200
Received-SPF: softfail receiver=mailfe03.swip.net; client-ip=188.126.198.129;
	envelope-from=hselasky@freebsd.org
From: Hans Petter Selasky <hselasky@freebsd.org>
To: Andriy Gapon <avg@freebsd.org>
Date: Mon, 29 Aug 2011 16:27:42 +0200
User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; )
References: <201107132107.p6DL7ojq099900@svn.freebsd.org>
	<4E5B9334.5020502@FreeBSD.org>
In-Reply-To: <4E5B9334.5020502@FreeBSD.org>
X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5
	%V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC(
	:AuzV9:.hESm-x4h240C`9=w
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="windows-1252"
Content-Transfer-Encoding: 7bit
Message-Id: <201108291627.42477.hselasky@freebsd.org>
Cc: "svn-src-head@FreeBSD.org" <svn-src-head@freebsd.org>,
	"svn-src-all@FreeBSD.org" <svn-src-all@freebsd.org>,
	"src-committers@FreeBSD.org" <src-committers@freebsd.org>
Subject: Re: svn commit: r223989 - head/sys/dev/usb/input
X-BeenThere: svn-src-all@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "SVN commit messages for the entire src tree \(except for &quot;
	user&quot; and &quot; projects&quot; \)" <svn-src-all.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-all>,
	<mailto:svn-src-all-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-src-all>
List-Post: <mailto:svn-src-all@freebsd.org>
List-Help: <mailto:svn-src-all-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-src-all>,
	<mailto:svn-src-all-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 29 Aug 2011 14:30:19 -0000

On Monday 29 August 2011 15:25:08 Andriy Gapon wrote:
> Another question - why ukbd_yield() is needed?
> Why kern_yield() would not be good here?
> What are the priority manipulations in ukbd_yield?
> Not saying that the code is incorrect, just that this is not explained in
> the commit message.

This is needed during mountroot prompt, to allow the worker threads of the USB 
code to run, because the mountroot code is like:

while (1) {
  cngetc();
}

instead of:

while (1) {
  cngetc();
  pause("WAIT_A_BIT", 1);
}

--HPS