Message ID | 20230123173206.6764-2-dave@stgolabs.net |
---|---|
State | New |
Headers | show |
Series | kernel/hrtimer: Ignore slack time for RT tasks | expand |
On Mon, Jan 23 2023 at 09:32, Davidlohr Bueso wrote: 'kernel/hrtimer:' is not the correct prefix. Hint: git log --oneline path/to/file I fixed that up for you this time....
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index 3ae661ab6260..8336c2618ec1 100644 --- a/kernel/time/hrtimer.c +++ b/kernel/time/hrtimer.c @@ -2089,7 +2089,7 @@ long hrtimer_nanosleep(ktime_t rqtp, const enum hrtimer_mode mode, u64 slack; slack = current->timer_slack_ns; - if (dl_task(current) || rt_task(current)) + if (rt_task(current)) slack = 0; hrtimer_init_sleeper_on_stack(&t, clockid, mode);
Having dl_task() is redundant, trivially simplify. Signed-off-by: Davidlohr Bueso <dave@stgolabs.net> --- kernel/time/hrtimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)