Skip to content

Commit

Permalink
USB: Make usb-autosuspend timer 1 sec jiffy aligned
Browse files Browse the repository at this point in the history
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]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
Venki Pallipadi authored and gregkh committed Jul 12, 2007
1 parent 8e80e75 commit 8d6d5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/core/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8d6d5fd

Please sign in to comment.