nohz: Restart tick before do softirq
PATCH 1/1 nohz: Restart tick before do softirq
When the cpu is continuously idle, tick_irq_exit() will count next tick expiry with maybe several periodic ticks, but if it enters softirq before next tick, invoke_softirq() is called before tick_irq_exit(), there will be no ticks during softirq. So with sched_clock_irqtime closing, sirq is very low in nohz idle even if the softirq costs much time beause of the sampling ticks missing(sirq will be much higher and seem exact if the cpu is busy).
Signed-off-by chenshiyan <[email protected]>
--- kernel/softirq.c | 1 + 1 file changed, 1 insertion(+)
kernel/softirq.c +1 -0
@@ -210,6 +210,7 @@ static inline void invoke_softirq(void)return ;if (!force_irqthreads) { +tick_nohz_idle_restart_tick ();#ifdef CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK /* * We can safely execute softirq on the current stack if
Signature · 1 line
1.8.3.1