]> git.baikalelectronics.ru Git - kernel.git/commit
time: don't touch an offlined CPU's ts->tick_stopped in tick_cancel_sched_timer()
authorKarsten Wiese <fzu@wemgehoertderstaat.de>
Tue, 4 Mar 2008 22:59:55 +0000 (14:59 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 9 Mar 2008 07:42:57 +0000 (08:42 +0100)
commit4dfa19902c2517ebaf19d6367d4dffa4ed43fb40
tree87fedadc8d003391c9ccf5d3cf0aba69fb8e443d
parent8d562bfd3058f09382a834c3c2c079a157ac8aed
time: don't touch an offlined CPU's ts->tick_stopped in tick_cancel_sched_timer()

Silences WARN_ONs in rcu_enter_nohz() and rcu_exit_nohz(), which appeared
before caused by (repeated) calls to:
        $ echo 0 > /sys/devices/system/cpu/cpu1/online
        $ echo 1 > /sys/devices/system/cpu/cpu1/online

Signed-off-by: Karsten Wiese <fzu@wemgehoertderstaat.de>
Cc: johnstul@us.ibm.com
Cc: Rafael Wysocki <rjw@sisk.pl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/tick-sched.c