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.

Alan Stern


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
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to