hrtimers: Move lock held region in hrtimer_interrupt()
authorThomas Gleixner <tglx@linutronix.de>
Tue, 10 Jul 2012 22:43:23 +0000 (18:43 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 25 Jul 2012 03:11:36 +0000 (04:11 +0100)
commitd6a2a0400e36bcd2892272995a65b4bca029220f
treea61c66f2fd92d8dd8d88326eb8b559e8ce51d6c1
parenta105e023adf852c9847e1fe7f0bc151ce0339914
hrtimers: Move lock held region in hrtimer_interrupt()

commit 196951e91262fccda81147d2bcf7fdab08668b40 upstream.

We need to update the base offsets from this code and we need to do
that under base->lock. Move the lock held region around the
ktime_get() calls. The ktime_get() calls are going to be replaced with
a function which gets the time and the offsets atomically.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Link: http://lkml.kernel.org/r/1341960205-56738-6-git-send-email-johnstul@us.ibm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
kernel/hrtimer.c