[PATCH v2] sched/core: Remove rq_relock()

From: Peng Wang
Date: Mon Oct 18 2021 - 22:59:24 EST


After the removal of migrate_tasks(), there is no user of
rq_relock() left, so remove it.

Signed-off-by: Peng Wang <rocking@xxxxxxxxxxxxxxxxx>
---

Changes since v1:
- fix typo in commit log: rq_lock() -> rq_relock()

kernel/sched/sched.h | 8 --------
1 file changed, 8 deletions(-)

diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 3d3e579..8470c9e 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -1622,14 +1622,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)
{
--
2.9.5