Skip to content

Commit eaed27d

Browse files
Peng WangPeter Zijlstra
authored andcommitted
sched/core: Remove rq_relock()
After the removal of migrate_tasks(), there is no user of rq_relock() left, so remove it. Signed-off-by: Peng Wang <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/449948fdf9be4764b3929c52572917dd25eef758.1634611953.git.rocking@linux.alibaba.com
1 parent 96611c2 commit eaed27d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

kernel/sched/sched.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,14 +1615,6 @@ rq_lock(struct rq *rq, struct rq_flags *rf)
16151615
rq_pin_lock(rq, rf);
16161616
}
16171617

1618-
static inline void
1619-
rq_relock(struct rq *rq, struct rq_flags *rf)
1620-
__acquires(rq->lock)
1621-
{
1622-
raw_spin_rq_lock(rq);
1623-
rq_repin_lock(rq, rf);
1624-
}
1625-
16261618
static inline void
16271619
rq_unlock_irqrestore(struct rq *rq, struct rq_flags *rf)
16281620
__releases(rq->lock)

0 commit comments

Comments
 (0)