lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 8 Oct 2008 10:11:36 -0400 (EDT)
From:	Alan Stern <stern@...land.harvard.edu>
To:	Yi Yang <yi.y.yang@...el.com>
cc:	Andrew Morton <akpm@...ux-foundation.org>,
	<linux-kernel@...r.kernel.org>, <dbrownell@...rs.sourceforge.net>,
	<gregkh@...e.de>, <linux-usb@...r.kernel.org>,
	<leonidv11@...il.com>
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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ