Skip to content

Commit 703b8e8

Browse files
committed
sched/smp: Use the SMP version of rq_pin_lock()
Simplify the scheduler by making a CONFIG_SMP-only warning in rq_pin_lock() unconditional. Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: Dietmar Eggemann <dietmar.eggemann@arm.com> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mel Gorman <mgorman@suse.de> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Shrikanth Hegde <sshegde@linux.ibm.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Valentin Schneider <vschneid@redhat.com> Cc: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lore.kernel.org/r/20250528080924.2273858-39-mingo@kernel.org
1 parent 9fd5da7 commit 703b8e8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

kernel/sched/sched.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,9 +1745,7 @@ static inline void rq_pin_lock(struct rq *rq, struct rq_flags *rf)
17451745

17461746
rq->clock_update_flags &= (RQCF_REQ_SKIP|RQCF_ACT_SKIP);
17471747
rf->clock_update_flags = 0;
1748-
#ifdef CONFIG_SMP
17491748
WARN_ON_ONCE(rq->balance_callback && rq->balance_callback != &balance_push_callback);
1750-
#endif
17511749
}
17521750

17531751
static inline void rq_unpin_lock(struct rq *rq, struct rq_flags *rf)

0 commit comments

Comments
 (0)