From: Venki Pallipadi <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> Cc: Greg KH <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> --- drivers/usb/core/driver.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/usb/core/driver.c~make-usb-autosuspend-timer-1-sec-jiffy-aligned drivers/usb/core/driver.c --- a/drivers/usb/core/driver.c~make-usb-autosuspend-timer-1-sec-jiffy-aligned +++ a/drivers/usb/core/driver.c @@ -1010,7 +1010,7 @@ static int autosuspend_check(struct usb_ * or for the past. */ queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend, - suspend_time - jiffies); + round_jiffies_relative(suspend_time - jiffies)); } return -EAGAIN; } _ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel