projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f76d59
)
hrtimer: Rely on rt_task() for DL tasks too
author
Davidlohr Bueso
<dave@stgolabs.net>
Mon, 23 Jan 2023 17:32:05 +0000
(09:32 -0800)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 31 Jan 2023 10:23:07 +0000
(11:23 +0100)
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
kernel/time/hrtimer.c
patch
|
blob
|
history
diff --git
a/kernel/time/hrtimer.c
b/kernel/time/hrtimer.c
index e4f0e3b0c4f4f8449bdb10e7a7ec84b0a9f55663..667b713bab42c0ca5d62fd119b2ccc26fe63f95f 100644
(file)
--- 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);