summaryrefslogtreecommitdiff
path: root/kernel/sched
diff options
context:
space:
mode:
authorPeng Wang <rocking@linux.alibaba.com>2021-10-19 10:58:39 +0800
committerPeter Zijlstra <peterz@infradead.org>2021-10-22 15:32:46 +0200
commiteaed27d0d01a89a510736d87f10cea02042b4756 (patch)
treec9e1edc76ba55ebc454d762278bce0a87989f1d7 /kernel/sched
parent96611c26dc351c33f73b48756a9feacc109e5bab (diff)
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 <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
Diffstat (limited to 'kernel/sched')
-rw-r--r--kernel/sched/sched.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index a00fc7057d97..f0b249ec581d 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -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)
{