summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorVenki Pallipadi <venkatesh.pallipadi@intel.com>2007-07-09 21:03:06 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-07-13 01:34:40 +0200
commit8d6d5fd05088c023bb8b22a4bd0067c21f9c5f18 (patch)
treecb1c81040e60a32dcb9a4cf77f490487563d723c /drivers/usb
parentUSB: Don't autosuspend Blackberry devices. (diff)
downloadlinux-8d6d5fd05088c023bb8b22a4bd0067c21f9c5f18.tar.xz
linux-8d6d5fd05088c023bb8b22a4bd0067c21f9c5f18.zip
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.c2
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)
* or for the past.
*/
queue_delayed_work(ksuspend_usb_wq, &udev->autosuspend,
- suspend_time - jiffies);
+ round_jiffies_relative(suspend_time - jiffies));
}
return -EAGAIN;
}