mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
ktime: Cleanup ktime_set() usage
ktime_set(S,N) was required for the timespec storage type and is still useful for situations where a Seconds and Nanoseconds part of a time value needs to be converted. For anything where the Seconds argument is 0, this is pointless and can be replaced with a simple assignment. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Peter Zijlstra <peterz@infradead.org>
This commit is contained in:
parent
2456e85535
commit
8b0e195314
56 changed files with 84 additions and 95 deletions
|
@ -88,8 +88,7 @@ static void ehci_enable_event(struct ehci_hcd *ehci, unsigned event,
|
|||
ktime_t *timeout = &ehci->hr_timeouts[event];
|
||||
|
||||
if (resched)
|
||||
*timeout = ktime_add(ktime_get(),
|
||||
ktime_set(0, event_delays_ns[event]));
|
||||
*timeout = ktime_add(ktime_get(), event_delays_ns[event]);
|
||||
ehci->enabled_hrtimer_events |= (1 << event);
|
||||
|
||||
/* Track only the lowest-numbered pending event */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue