Date: Sun, 31 Oct 2010 12:52:50 +1300 From: Andrew Thompson <thompsa@FreeBSD.org> To: Weongyo Jeong <weongyo@freebsd.org> Cc: freebsd-usb@freebsd.org Subject: Re: [CFR] add usb_sleepout.[ch] Message-ID: <AANLkTinWoYdWe4eK1AdyYMeOJy2rn72_KiU=K0eBZx_t@mail.gmail.com> In-Reply-To: <20101030231901.GA83161@weongyo> References: <20101030231901.GA83161@weongyo>
index | next in thread | previous in thread | raw e-mail
On 31 October 2010 12:19, Weongyo Jeong <weongyo.jeong@gmail.com> wrote: > Hello USB guys, > > The following patch is to add a implementation, called `sleepout'. > Please reviews. I'd like to commit it into HEAD if no objections. > > Adds `sleepout' prototype which is a comic combination of callout(9) and > taskqueue(8) only for USB drivers to implement one step timer. In > current USB drivers using callout(9) interface they all have two step > execution flow as follows: > > 1. callout callback is fired by the interrupt context. Then it needs > to pass it to USB process context because it could sleep(!) while > callout(9) don't allow it. > 2. In the USB process context it operates USB commands that most of > times it'd be blocked at least 125 us (it'd be always true for USB) I think it is a good addition. Andrewhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinWoYdWe4eK1AdyYMeOJy2rn72_KiU=K0eBZx_t>
