Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8d6d5fd0 authored by Venki Pallipadi's avatar Venki Pallipadi Committed by Greg Kroah-Hartman
Browse files

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: default avatarVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8e80e753
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}