diff mbox series

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

Message ID 20230123173206.6764-2-dave@stgolabs.net
State New
Headers show
Series kernel/hrtimer: Ignore slack time for RT tasks | expand

Commit Message

Davidlohr Bueso Jan. 23, 2023, 5:32 p.m. UTC
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(-)

Comments

Thomas Gleixner Jan. 31, 2023, 10:24 a.m. UTC | #1
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 mbox series

Patch

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