Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755487AbYJHOLr (ORCPT ); Wed, 8 Oct 2008 10:11:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754143AbYJHOLi (ORCPT ); Wed, 8 Oct 2008 10:11:38 -0400 Received: from iolanthe.rowland.org ([192.131.102.54]:51106 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752652AbYJHOLh (ORCPT ); Wed, 8 Oct 2008 10:11:37 -0400 Date: Wed, 8 Oct 2008 10:11:36 -0400 (EDT) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Yi Yang cc: Andrew Morton , , , , , Subject: Re: [PATCH] USB: improve ehci_watchdog's side effect in CPU power management In-Reply-To: <1223463117.2845.15.camel@yangyi-dev> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 642 Lines: 19 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/