Files
linux-stable-mirror/include/linux
Thomas Gleixner 249d4a9b32 timers: Reinitialize per cpu bases on hotplug
commit 26456f87ac upstream.

The timer wheel bases are not (re)initialized on CPU hotplug. That leaves
them with a potentially stale clk and next_expiry valuem, which can cause
trouble then the CPU is plugged.

Add a prepare callback which forwards the clock, sets next_expiry to far in
the future and reset the control flags to a known state.

Set base->must_forward_clk so the first timer which is queued will try to
forward the clock to current jiffies.

Fixes: 500462a9de ("timers: Switch to a non-cascading wheel")
Reported-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Cc: Anna-Maria Gleixner <anna-maria@linutronix.de>
Link: https://lkml.kernel.org/r/alpine.DEB.2.20.1712272152200.2431@nanos
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-02 20:35:17 +01:00
..
2017-10-08 10:26:06 +02:00
2017-12-25 14:23:47 +01:00
2017-06-14 15:06:00 +02:00
2016-10-07 18:46:30 -07:00
2017-08-06 18:59:43 -07:00
2017-07-15 12:16:11 +02:00
2017-05-14 14:00:22 +02:00
2017-07-12 15:01:02 +02:00
2017-08-06 18:59:43 -07:00
2016-10-20 15:51:28 +11:00
2017-08-24 17:12:19 -07:00
2016-10-19 11:36:22 -06:00
2017-08-24 17:12:21 -07:00
2016-10-14 11:36:59 -07:00
2018-01-02 20:35:11 +01:00
2017-08-24 17:12:21 -07:00
2017-08-30 10:21:40 +02:00
2016-10-05 18:23:36 -04:00
2017-01-19 20:17:59 +01:00
2017-04-21 09:31:21 +02:00
2017-12-25 14:23:37 +01:00
2017-09-09 17:39:41 +02:00