nohz: Get timekeeping max deferment outside jiffies_lock
authorFrederic Weisbecker <fweisbec@gmail.com>
Mon, 16 Dec 2013 23:16:37 +0000 (00:16 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 15 Jan 2014 22:07:11 +0000 (23:07 +0100)
commit855a0fc30b70d6ae681badd24d6625f9a9abb787
tree4cd7ec203e28db952889a36e6a181414d4e26c02
parent5acac1be499d979e3aa463ea73a498888faefcbe
nohz: Get timekeeping max deferment outside jiffies_lock

We don't need to fetch the timekeeping max deferment under the
jiffies_lock seqlock.

If the clocksource is updated concurrently while we stop the tick,
stop machine is called and the tick will be reevaluated again along with
uptodate jiffies and its related values.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Alex Shi <alex.shi@linaro.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Kevin Hilman <khilman@linaro.org>
Link: http://lkml.kernel.org/r/1387320692-28460-9-git-send-email-fweisbec@gmail.com
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
kernel/time/tick-sched.c