Date: Mon, 29 Aug 2011 16:27:42 +0200 From: Hans Petter Selasky <hselasky@freebsd.org> To: Andriy Gapon <avg@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 Message-ID: <201108291627.42477.hselasky@freebsd.org> In-Reply-To: <4E5B9334.5020502@FreeBSD.org> References: <201107132107.p6DL7ojq099900@svn.freebsd.org> <4E5B9334.5020502@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108291627.42477.hselasky>
