diff options
author | Peter Zijlstra <peterz@infradead.org> | 2020-11-18 00:19:31 +0100 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-05-12 11:43:26 +0200 |
commit | 5cb9eaa3d274f75539077a28cf01e3563195fa53 (patch) | |
tree | e1f3c463f682add25856cae8d02fd258dd8cbb8a /kernel/sched/pelt.h | |
parent | sched: Provide raw_spin_rq_*lock*() helpers (diff) | |
download | linux-5cb9eaa3d274f75539077a28cf01e3563195fa53.tar.xz linux-5cb9eaa3d274f75539077a28cf01e3563195fa53.zip |
sched: Wrap rq::lock access
In preparation of playing games with rq->lock, abstract the thing
using an accessor.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Don Hiatt <dhiatt@digitalocean.com>
Tested-by: Hongyu Ning <hongyu.ning@linux.intel.com>
Tested-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20210422123308.136465446@infradead.org
Diffstat (limited to 'kernel/sched/pelt.h')
-rw-r--r-- | kernel/sched/pelt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/pelt.h b/kernel/sched/pelt.h index 1462846d244e..9ed6d8c414ad 100644 --- a/kernel/sched/pelt.h +++ b/kernel/sched/pelt.h @@ -141,7 +141,7 @@ static inline void update_idle_rq_clock_pelt(struct rq *rq) static inline u64 rq_clock_pelt(struct rq *rq) { - lockdep_assert_held(&rq->lock); + lockdep_assert_rq_held(rq); assert_clock_updated(rq); return rq->clock_pelt - rq->lost_idle_time; |