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... Thanks -- Franck 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