diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2025-01-03 10:24:08 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2025-01-13 14:10:26 +0100 |
commit | a6fd16148fdd7e9da143037106956a3447c247a8 (patch) | |
tree | e2e8d1f87bba29d38768ddd64ef1e21bb7d8d386 /scripts/generate_rust_analyzer.py | |
parent | 763a744e24a8cfbcc13f699dcdae13a627b8588e (diff) |
sched, psi: Don't account irq time if sched_clock_irqtime is disabled
sched_clock_irqtime may be disabled due to the clock source. When disabled,
irq_time_read() won't change over time, so there is nothing to account. We
can save iterating the whole hierarchy on every tick and context switch.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Link: https://lore.kernel.org/r/20250103022409.2544-4-laoar.shao@gmail.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions