Message ID | CAKohponji62SKmbfnELX0pwk3Yy14gDat2sJ-OJctmybqQSCGA@mail.gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/include/linux/tick.h b/include/linux/tick.h index 1065a51..12632cc 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -220,7 +220,7 @@ static inline void tick_nohz_full_check(void) static inline void tick_nohz_task_switch(void) { - if (tick_nohz_full_enabled()) + if (tick_nohz_full_enabled() && tick_nohz_tick_stopped()) __tick_nohz_task_switch(); } diff --git a/kernel/time/tick-sched.c b/kernel/time/tick-sched.c index 45037c4..904e09b 100644 --- a/kernel/time/tick-sched.c +++ b/kernel/time/tick-sched.c @@ -273,7 +273,7 @@ void __tick_nohz_task_switch(void) local_irq_save(flags); - if (tick_nohz_tick_stopped() && !can_stop_full_tick()) + if (!can_stop_full_tick()) tick_nohz_full_kick(); local_irq_restore(flags);