Skip to content

Commit 2763053

Browse files
vireshkKAGA-KOKO
authored andcommitted
tick-sched: Check tick_nohz_enabled in tick_nohz_switch_to_nohz()
Since commit d689fe2 (NOHZ: Check for nohz active instead of nohz enabled) the tick_nohz_switch_to_nohz() function returns because it checks for the tick_nohz_active flag. This can't be set, because the function itself sets it. Undo the change in tick_nohz_switch_to_nohz(). Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Cc: linaro-kernel@lists.linaro.org Cc: fweisbec@gmail.com Cc: Arvind.Chauhan@arm.com Cc: linaro-networking@linaro.org Cc: <stable@vger.kernel.org> # 3.13+ Link: http://lkml.kernel.org/r/40939c05f2d65d781b92b20302b02243d0654224.1397537987.git.viresh.kumar@linaro.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 03e6bdc commit 2763053

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/time/tick-sched.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ static void tick_nohz_switch_to_nohz(void)
970970
struct tick_sched *ts = &__get_cpu_var(tick_cpu_sched);
971971
ktime_t next;
972972

973-
if (!tick_nohz_active)
973+
if (!tick_nohz_enabled)
974974
return;
975975

976976
local_irq_disable();

0 commit comments

Comments
 (0)