diff options
author | Venki Pallipadi <venkatesh.pallipadi@intel.com> | 2007-07-09 15:03:06 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-07-12 19:34:40 -0400 |
commit | 8d6d5fd05088c023bb8b22a4bd0067c21f9c5f18 (patch) | |
tree | cb1c81040e60a32dcb9a4cf77f490487563d723c /drivers/usb | |
parent | 8e80e753ea654ae0a66b33e404c0a517b34cb6e1 (diff) |
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 <venkatesh.pallipadi@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
1010 | * or for the past. | 1010 | * or for the past. |
1011 | */ | 1011 | */ |
1012 | queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend, | 1012 | queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend, |
1013 | suspend_time - jiffies); | 1013 | round_jiffies_relative(suspend_time - jiffies)); |
1014 | } | 1014 | } |
1015 | return -EAGAIN; | 1015 | return -EAGAIN; |
1016 | } | 1016 | } |