[PATCH 1/2] kernel/hrtimer: Rely on rt_task() for DL tasks too

From: Davidlohr Bueso
Date: Mon Jan 23 2023 - 13:05:08 EST


Having dl_task() is redundant, trivially simplify.

Signed-off-by: Davidlohr Bueso <dave@xxxxxxxxxxxx>
---
kernel/time/hrtimer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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);
--
2.39.0