On Tue, Jun 27, 2006 at 09:10:59PM +0200, Franck Bui-Huu wrote:
> 2006/6/27, Alan Stern <[EMAIL PROTECTED]>:
> > On Tue, 27 Jun 2006, Franck Bui-Huu wrote:
> >
> > > Franck Bui-Huu wrote:
> > > > +
> > > > + if (wait_for_completion_interruptible_timeout(
> > > > + &done, timeout ? : MAX_SCHEDULE_TIMEOUT) <= 0) {
> > >
> > > oops, timeout is in ms, and should be converted in jiffies...BTW why not
> > > simply always using jiffies ? timeout value are usually > 1s so it's
> > > pretty
> > > easy for device driver to write "2*HZ" for a 2 second timout.
> >
> > You're asking the wrong question. The real question is "Why ever use
> > jiffies?"
> >
> > Jiffy values don't mean anything outside a running system. They aren't
> > portable at all. But seconds, milliseconds, microseconds, and so on all
> > have very well-defined meanings.
> >
> > It's only because of historical inertia that jiffies are still used
> > anywhere.
> >
>
> well should take a look to this thread...
>
> http://marc.theaimsgroup.com/?l=linux-kernel&m=112136226822727&w=2
>
> That said, jiffies are usually used by the kernel services, so I guess
> that all uses of sec, msec, usec in the usb device drivers will be
> converted into jiffies eventually...
No, not at all. The functions will continue to deal in real time units
(sec, msec, etc.) as that is what we humans think in. The code will
convert them to jiffies to meet the needs of the kernel.
That quote from Linus is taken out of context, please read the whole
long thread for more details...
thanks,
greg k-h
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel