]> git.baikalelectronics.ru Git - kernel.git/commit
timekeeping: Maintain ktime_t based offsets for hrtimers
authorThomas Gleixner <tglx@linutronix.de>
Tue, 10 Jul 2012 22:43:21 +0000 (18:43 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 11 Jul 2012 21:34:38 +0000 (23:34 +0200)
commit028b3205cd995df46d4c0342f83fa9655310f07a
tree7f0e7d0c56e87422d4a2e9847c7079850bde6b11
parent2632ac3e0ee46668b2b25fda75f40c944b79867e
timekeeping: Maintain ktime_t based offsets for hrtimers

We need to update the hrtimer clock offsets from the hrtimer interrupt
context. To avoid conversions from timespec to ktime_t maintain a
ktime_t based representation of those offsets in the timekeeper. This
puts the conversion overhead into the code which updates the
underlying offsets and provides fast accessible values in the hrtimer
interrupt.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Acked-by: Prarit Bhargava <prarit@redhat.com>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1341960205-56738-4-git-send-email-johnstul@us.ibm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/time/timekeeping.c