diff options
author | Mariusz Skamra <mariuszx.skamra@intel.com> | 2017-05-26 06:15:59 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-03 05:08:04 -0400 |
commit | fa72e6afa795dbb35d0cc6332606e83e4415e45e (patch) | |
tree | 53092ad9c42474e38982c96adb4b12b2abe5a26a /drivers/usb/host/ehci-timer.c | |
parent | bab3548078237706f53baafe43ae58257225549d (diff) |
usb: Make use of ktime_* comparison functions
Start using ktime_* compare functions to make the code backportable.
Now that may be a bit tricky due to recent change of ktime_t.
Signed-off-by: Mariusz Skamra <mariuszx.skamra@intel.com>
Acked-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci-timer.c')
-rw-r--r-- | drivers/usb/host/ehci-timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/ehci-timer.c b/drivers/usb/host/ehci-timer.c index 3893b5bafd87..0b6cdb723192 100644 --- a/drivers/usb/host/ehci-timer.c +++ b/drivers/usb/host/ehci-timer.c | |||
@@ -424,7 +424,7 @@ static enum hrtimer_restart ehci_hrtimer_func(struct hrtimer *t) | |||
424 | */ | 424 | */ |
425 | now = ktime_get(); | 425 | now = ktime_get(); |
426 | for_each_set_bit(e, &events, EHCI_HRTIMER_NUM_EVENTS) { | 426 | for_each_set_bit(e, &events, EHCI_HRTIMER_NUM_EVENTS) { |
427 | if (now >= ehci->hr_timeouts[e]) | 427 | if (ktime_compare(now, ehci->hr_timeouts[e]) >= 0) |
428 | event_handlers[e](ehci); | 428 | event_handlers[e](ehci); |
429 | else | 429 | else |
430 | ehci_enable_event(ehci, e, false); | 430 | ehci_enable_event(ehci, e, false); |