Skip to content

Commit

Permalink
hrtimer: Rely on rt_task() for DL tasks too
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Davidlohr Bueso authored and dereference23 committed Jun 18, 2023
1 parent 8949e57 commit e22f0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/time/hrtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,7 @@ long hrtimer_nanosleep(const struct timespec64 *rqtp,
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, current);
Expand Down

0 comments on commit e22f0fa

Please sign in to comment.