Messages in this thread | | | Date | Wed, 8 Oct 2008 10:11:36 -0400 (EDT) | From | Alan Stern <> | Subject | Re: [PATCH] USB: improve ehci_watchdog's side effect in CPU power management |
| |
On Wed, 8 Oct 2008, Yi Yang wrote:
> CC to Alan Stern and Leonid, maybe they know why "t = > DIV_ROUND_UP(EHCI_SHRINK_FRAMES * HZ, 1000) + 1".
The "DIV_ROUND_UP(EHCI_SHRINK_FRAMES * HZ, 1000)" converts from milliseconds to jiffies. It could easily be replaced with msecs_to_jiffies().
The "+ 1" part is there to prevent ties, in case the conversion just happens to be exact.
Alan Stern
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |