]> git.baikalelectronics.ru Git - kernel.git/commit
nohz: fix wrong event handler after online an offlined cpu
authorMiao Xie <miaox@cn.fujitsu.com>
Wed, 20 Aug 2008 23:37:38 +0000 (16:37 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 21 Aug 2008 07:54:06 +0000 (09:54 +0200)
commit5ffab5fc62accf4061927b216523efc33638eb89
tree550195cb1a2ed58bc343e9a4f54d773e8abd5f90
parente95324920d5b477f43cdc2878e92ff7cca88223d
nohz: fix wrong event handler after online an offlined cpu

On the tickless system(CONFIG_NO_HZ=y and CONFIG_HIGH_RES_TIMERS=n), after
I made an offlined cpu online, I found this cpu's event handler was
tick_handle_periodic, not tick_nohz_handler.

After debuging, I found this bug was caused by the wrong tick mode.  the
tick mode is not changed to NOHZ_MODE_INACTIVE when the cpu is offline.

This patch fixes this bug.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/tick.h
kernel/time/tick-sched.c