From: Venki Pallipadi Date: Mon, 9 Jul 2007 19:03:06 +0000 (-0700) Subject: USB: Make usb-autosuspend timer 1 sec jiffy aligned X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d6d5fd05088c023bb8b22a4bd0067c21f9c5f18;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git USB: Make usb-autosuspend timer 1 sec jiffy aligned Make usb autosuspend timers 1sec jiffy aligned. This helps to reduce the frequency at which the CPU must be taken out of a lower-power state. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c index a3aed8d87ddc..73c49362cd47 100644 --- a/drivers/usb/core/driver.c +++ b/drivers/usb/core/driver.c @@ -1010,7 +1010,7 @@ static int autosuspend_check(struct usb_device *udev) * or for the past. */ queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend, - suspend_time - jiffies); + round_jiffies_relative(suspend_time - jiffies)); } return -EAGAIN; }