diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2023-01-23 18:32:05 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2023-01-31 11:23:07 +0100 |
commit | c14fd3dcacaa480394d3ac0b4a91a7d17a4b5516 (patch) | |
tree | c2f0ea39a8f9a404d8bdb9b90148aa763fb25126 /kernel/time | |
parent | timers: Prevent union confusion from unexpected restart_syscall() (diff) | |
download | linux-c14fd3dcacaa480394d3ac0b4a91a7d17a4b5516.tar.xz linux-c14fd3dcacaa480394d3ac0b4a91a7d17a4b5516.zip |
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 <dave@stgolabs.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20230123173206.6764-2-dave@stgolabs.net
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/hrtimer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c index e4f0e3b0c4f4..667b713bab42 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); |