diff options
author | Qais Yousef <qyousef@layalina.io> | 2024-06-10 21:20:18 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2024-08-07 18:32:38 +0200 |
commit | ae04f69de0bef93c7086cf2983dbc8e8fd624ebe (patch) | |
tree | 22e900c1069394189c8e78b70a32ef68c3293e5a /kernel/locking/rtmutex.c | |
parent | sched/rt, dl: Convert functions to return bool (diff) | |
download | linux-ae04f69de0bef93c7086cf2983dbc8e8fd624ebe.tar.xz linux-ae04f69de0bef93c7086cf2983dbc8e8fd624ebe.zip |
sched/rt: Rename realtime_{prio, task}() to rt_or_dl_{prio, task}()
Some find the name realtime overloaded. Use rt_or_dl() as an
alternative, hopefully better, name.
Suggested-by: Daniel Bristot de Oliveira <bristot@redhat.com>
Signed-off-by: Qais Yousef <qyousef@layalina.io>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240610192018.1567075-4-qyousef@layalina.io
Diffstat (limited to 'kernel/locking/rtmutex.c')
-rw-r--r-- | kernel/locking/rtmutex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c index 55c9dab37f33..c2a530d704b4 100644 --- a/kernel/locking/rtmutex.c +++ b/kernel/locking/rtmutex.c @@ -347,7 +347,7 @@ static __always_inline int __waiter_prio(struct task_struct *task) { int prio = task->prio; - if (!realtime_prio(prio)) + if (!rt_or_dl_prio(prio)) return DEFAULT_PRIO; return prio; @@ -435,7 +435,7 @@ static inline bool rt_mutex_steal(struct rt_mutex_waiter *waiter, * Note that RT tasks are excluded from same priority (lateral) * steals to prevent the introduction of an unbounded latency. */ - if (realtime_prio(waiter->tree.prio)) + if (rt_or_dl_prio(waiter->tree.prio)) return false; return rt_waiter_node_equal(&waiter->tree, &top_waiter->tree); |