]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sched: Don't account irq time if sched_clock_irqtime is disabled
authorYafang Shao <laoar.shao@gmail.com>
Fri, 3 Jan 2025 02:24:07 +0000 (10:24 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 13 Jan 2025 13:10:25 +0000 (14:10 +0100)
commit763a744e24a8cfbcc13f699dcdae13a627b8588e
tree8588de5b99875e210ada6ee99b9dd08e6f97e68c
parent8722903cbb8f0d51057fbf9ef1c680756b74119e
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
kernel/sched/core.c