sched/core: Remove rq_relock()
authorPeng Wang <rocking@linux.alibaba.com>
Tue, 19 Oct 2021 02:58:39 +0000 (10:58 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 22 Oct 2021 13:32:46 +0000 (15:32 +0200)
After the removal of migrate_tasks(), there is no user of
rq_relock() left, so remove it.

Signed-off-by: Peng Wang <rocking@linux.alibaba.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/449948fdf9be4764b3929c52572917dd25eef758.1634611953.git.rocking@linux.alibaba.com
kernel/sched/sched.h

index a00fc70..f0b249e 100644 (file)
@@ -1616,14 +1616,6 @@ rq_lock(struct rq *rq, struct rq_flags *rf)
 }
 
 static inline void
-rq_relock(struct rq *rq, struct rq_flags *rf)
-       __acquires(rq->lock)
-{
-       raw_spin_rq_lock(rq);
-       rq_repin_lock(rq, rf);
-}
-
-static inline void
 rq_unlock_irqrestore(struct rq *rq, struct rq_flags *rf)
        __releases(rq->lock)
 {