James Chapman <[EMAIL PROTECTED]> writes: > > Clearly, keeping a device in polled mode for 1-2 jiffies
1-2 jiffies can be a long time on a HZ=100 kernel (20ms). A fast CPU could do a lot of loops in this time, which would be waste of power and CPU time. On some platforms the precise timers (like ktime_get()) can be slow, but often they are fast. It might make sense to use a shorter constant time wait on those with fast timers at least. Right now this cannot be known by portable code, but there was a proposal some time ago to export some global estimate to tell how fast ktime_get().et.al. are. That could be reviewed. -Andi - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html