Skip to content

Commit fc75ac3

Browse files
author
Ingo Molnar
committed
sched/smp: Use the SMP version of add_nr_running()
Simplify the scheduler by making CONFIG_SMP=y code in add_nr_running() 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 241c307 commit fc75ac3

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
@@ -2673,10 +2673,8 @@ static inline void add_nr_running(struct rq *rq, unsigned count)
26732673
call_trace_sched_update_nr_running(rq, count);
26742674
}
26752675

2676-
#ifdef CONFIG_SMP
26772676
if (prev_nr < 2 && rq->nr_running >= 2)
26782677
set_rd_overloaded(rq->rd, 1);
2679-
#endif
26802678

26812679
sched_update_tick_dependency(rq);
26822680
}

0 commit comments

Comments
 (0)