[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230123173206.6764-2-dave@stgolabs.net>
Date: Mon, 23 Jan 2023 09:32:05 -0800
From: Davidlohr Bueso <dave@...olabs.net>
To: tglx@...utronix.de
Cc: mingo@...nel.org, peterz@...radead.org, bigeasy@...utronix.de,
dave@...olabs.net, linux-rt-users@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] kernel/hrtimer: Rely on rt_task() for DL tasks too
Having dl_task() is redundant, trivially simplify.
Signed-off-by: Davidlohr Bueso <dave@...olabs.net>
---
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
Powered by blists - more mailing lists