Skip to content

Commit dabe1be

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

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/sched/sched.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2840,10 +2840,7 @@ unsigned long arch_scale_freq_capacity(int cpu)
28402840
static inline void double_rq_clock_clear_update(struct rq *rq1, struct rq *rq2)
28412841
{
28422842
rq1->clock_update_flags &= (RQCF_REQ_SKIP|RQCF_ACT_SKIP);
2843-
/* rq1 == rq2 for !CONFIG_SMP, so just clear RQCF_UPDATED once. */
2844-
#ifdef CONFIG_SMP
28452843
rq2->clock_update_flags &= (RQCF_REQ_SKIP|RQCF_ACT_SKIP);
2846-
#endif
28472844
}
28482845

28492846
#define DEFINE_LOCK_GUARD_2(name, type, _lock, _unlock, ...) \

0 commit comments

Comments
 (0)