diff options
| author | Ingo Molnar <[email protected]> | 2025-05-28 08:09:24 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2025-06-13 06:47:23 +0000 |
| commit | dabe1be4e84c05db9341eb8c6c410e18a5ffeaa5 (patch) | |
| tree | d1ce4368e19a4b242363e65a90260308b6fbb108 | |
| parent | sched/smp: Use the SMP version of add_nr_running() (diff) | |
| download | kernel-dabe1be4e84c05db9341eb8c6c410e18a5ffeaa5.tar.gz kernel-dabe1be4e84c05db9341eb8c6c410e18a5ffeaa5.zip | |
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]
| -rw-r--r-- | kernel/sched/sched.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index aa08103f8584..c323d015486c 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -2840,10 +2840,7 @@ unsigned long arch_scale_freq_capacity(int cpu) static inline void double_rq_clock_clear_update(struct rq *rq1, struct rq *rq2) { rq1->clock_update_flags &= (RQCF_REQ_SKIP|RQCF_ACT_SKIP); - /* rq1 == rq2 for !CONFIG_SMP, so just clear RQCF_UPDATED once. */ -#ifdef CONFIG_SMP rq2->clock_update_flags &= (RQCF_REQ_SKIP|RQCF_ACT_SKIP); -#endif } #define DEFINE_LOCK_GUARD_2(name, type, _lock, _unlock, ...) \ |
