]> git.baikalelectronics.ru Git - kernel.git/commit
tick: Don't invoke tick_nohz_stop_sched_tick() if the cpu is offline
authorThomas Gleixner <tglx@linutronix.de>
Mon, 13 May 2013 19:40:27 +0000 (21:40 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 May 2013 15:40:31 +0000 (17:40 +0200)
commit49506c642ed6cb469c7ccb6ed24af095a1c042f1
tree9b9d22393afbaa246272d896d2641fb0c33887be
parent131a46059e9ed9e2e9691ea8342c7d9a6b5dd29a
tick: Don't invoke tick_nohz_stop_sched_tick() if the cpu is offline

commit 1da73b802 (nohz: Move ts->idle_calls incrementation into strict
idle logic) moved code out of tick_nohz_stop_sched_tick() and missed
to bail out when the cpu is offline. That's causing subsequent
failures as an offline CPU is supposed to die and not to fiddle with
nohz magic.

Return false in can_stop_idle_tick() if the cpu is offline.

Reported-and-tested-by: Jiri Kosina <jkosina@suse.cz>
Reported-and-tested-by: Prarit Bhargava <prarit@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: x86@kernel.org
Link: http://lkml.kernel.org/r/alpine.LFD.2.02.1305132138160.2863@ionos
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/tick-sched.c