sched/rt: add lockdep annotations for rq_{off|on}line_rt
PATCH 1/1 sched/rt: add lockdep annotations for rq_{off|on}line_rt
Remove code comment assumptions in favor of lockdep assertions.
Signed-off-by Jon Kohler <[email protected]>
--- kernel/sched/rt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
kernel/sched/rt.c +4 -2
@@ -2407,9 +2407,10 @@ static void task_woken_rt(struct rq *rq, struct task_struct *p)push_rt_tasks (rq); } -/* Assumes rq->lock is held */ static void rq_online_rt (struct rq *rq) { +lockdep_assert_rq_held (rq); +if (rq->rt.overloaded)rt_set_overload (rq);
@@ -2418,9 +2419,10 @@ static void rq_online_rt(struct rq *rq)cpupri_set (&rq->rd->cpupri, rq->cpu, rq->rt.highest_prio.curr); } -/* Assumes rq->lock is held */ static void rq_offline_rt (struct rq *rq) { +lockdep_assert_rq_held (rq); +if (rq->rt.overloaded)rt_clear_overload (rq);
Signature · 1 line
2.43.0