Re: [PATCH] USB: improve ehci_watchdog's side effect in CPU powermanagement
From: Alan Stern
Date: Wed Oct 08 2008 - 10:11:48 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/