* [PATCH] sched/core: Remove rq_relock()
@ 2021-10-19 2:46 Peng Wang
2021-10-19 2:58 ` [PATCH v2] " Peng Wang
0 siblings, 1 reply; 2+ messages in thread
From: Peng Wang @ 2021-10-19 2:46 UTC (permalink / raw)
To: mingo, peterz, juri.lelli, vincent.guittot, dietmar.eggemann,
rostedt, bsegall, mgorman, bristot
Cc: linux-kernel
After the removal of migrate_tasks(), there is no user of
rq_lock() left, so remove it.
Signed-off-by: Peng Wang <rocking@linux.alibaba.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v2] sched/core: Remove rq_relock()
2021-10-19 2:46 [PATCH] sched/core: Remove rq_relock() Peng Wang
@ 2021-10-19 2:58 ` Peng Wang
0 siblings, 0 replies; 2+ messages in thread
From: Peng Wang @ 2021-10-19 2:58 UTC (permalink / raw)
To: mingo, peterz, juri.lelli, vincent.guittot, dietmar.eggemann,
rostedt, bsegall, mgorman, bristot
Cc: linux-kernel
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>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-19 2:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-19 2:46 [PATCH] sched/core: Remove rq_relock() Peng Wang
2021-10-19 2:58 ` [PATCH v2] " Peng Wang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.