Skip to content

Commit 703b8e8

Browse files
author
Ingo Molnar
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 <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Dietmar Eggemann <[email protected]> Cc: Juri Lelli <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]> Cc: Shrikanth Hegde <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Valentin Schneider <[email protected]> Cc: Vincent Guittot <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 9fd5da7 commit 703b8e8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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)