Skip to content

Commit c14fd3d

Browse files
Davidlohr BuesoKAGA-KOKO
authored andcommitted
hrtimer: Rely on rt_task() for DL tasks too
Checking dl_task() is redundant as rt_task() returns true for deadline tasks too. Signed-off-by: Davidlohr Bueso <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9f76d59 commit c14fd3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/time/hrtimer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2089,7 +2089,7 @@ long hrtimer_nanosleep(ktime_t rqtp, const enum hrtimer_mode mode,
20892089
u64 slack;
20902090

20912091
slack = current->timer_slack_ns;
2092-
if (dl_task(current) || rt_task(current))
2092+
if (rt_task(current))
20932093
slack = 0;
20942094

20952095
hrtimer_init_sleeper_on_stack(&t, clockid, mode);

0 commit comments

Comments
 (0)