mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
hrtimer: incorporate feedback from Peter Zijlstra
(based on lkml review) * use rt_task() * task_nice() has a sign Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
This commit is contained in:
parent
da8f2e170e
commit
4ce105d30e
2 changed files with 3 additions and 4 deletions
|
@ -363,7 +363,7 @@ static inline int hrtimer_start_expires(struct hrtimer *timer,
|
|||
soft = hrtimer_get_softexpires(timer);
|
||||
hard = hrtimer_get_expires(timer);
|
||||
delta = ktime_to_ns(ktime_sub(hard, soft));
|
||||
return hrtimer_start_range_ns(timer, hrtimer_get_expires(timer), delta, mode);
|
||||
return hrtimer_start_range_ns(timer, soft, delta, mode);
|
||||
}
|
||||
|
||||
static inline int hrtimer_restart(struct hrtimer *timer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue