diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2025-01-03 10:24:07 +0800 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2025-01-13 14:10:25 +0100 |
commit | 763a744e24a8cfbcc13f699dcdae13a627b8588e (patch) | |
tree | 8588de5b99875e210ada6ee99b9dd08e6f97e68c /scripts/generate_rust_analyzer.py | |
parent | 8722903cbb8f0d51057fbf9ef1c680756b74119e (diff) |
sched: Don't account irq time if sched_clock_irqtime is disabled
sched_clock_irqtime may be disabled due to the clock source, in which case
IRQ time should not be accounted. Let's add a conditional check to avoid
unnecessary logic.
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>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20250103022409.2544-3-laoar.shao@gmail.com
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions