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 <dave@stgolabs.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230123173206.6764-2-dave@stgolabs.net
  • Loading branch information
Davidlohr Bueso authored and Thomas Gleixner committed Jan 31, 2023
1 parent 9f76d59 commit c14fd3d
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 @@ -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);
Expand Down

0 comments on commit c14fd3d

Please sign in to comment.