summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorVenki Pallipadi <venkatesh.pallipadi@intel.com>2007-07-09 12:03:06 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-12 16:34:40 -0700
commit8d6d5fd05088c023bb8b22a4bd0067c21f9c5f18 (patch)
treecb1c81040e60a32dcb9a4cf77f490487563d723c /drivers/usb/core
parent8e80e753ea654ae0a66b33e404c0a517b34cb6e1 (diff)
downloadop-kernel-dev-8d6d5fd05088c023bb8b22a4bd0067c21f9c5f18.zip
op-kernel-dev-8d6d5fd05088c023bb8b22a4bd0067c21f9c5f18.tar.gz
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/core')
-rw-r--r--drivers/usb/core/driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
index a3aed8d8..73c4936 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;
}
OpenPOWER on IntegriCloud