tick-sched: Check tick_nohz_enabled in tick_nohz_switch_to_nohz()
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 15 Apr 2014 05:24:41 +0000 (10:54 +0530)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Apr 2014 18:26:58 +0000 (20:26 +0200)
commit27630532ef5ead28b98cfe28d8f95222ef91c2b7
tree6f7b01c349a27acd39a35de246c3b78b01b726ab
parent03e6bdc5c4d0fc166bfd5d3cf749a5a0c1b5b1bd
tick-sched: Check tick_nohz_enabled in tick_nohz_switch_to_nohz()

Since commit d689fe222 (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>
kernel/time/tick-sched.c