timekeeping: Create struct tk_read_base and use it in struct timekeeper
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:05:16 +0000 (21:05 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 22:01:53 +0000 (15:01 -0700)
commitd28ede83791defee9a81e558540699dc46dbbe13
tree40df9738db287097241fe25493df982ee33b046f
parent6d3aadf3e180e09dbefab16478c6876b584ce16e
timekeeping: Create struct tk_read_base and use it in struct timekeeper

The members of the new struct are the required ones for the new NMI
safe accessor to clcok monotonic. In order to reuse the existing
timekeeping code and to make the update of the fast NMI safe
timekeepers a simple memcpy use the struct for the timekeeper as well
and convert all users.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
arch/arm64/kernel/vdso.c
arch/s390/kernel/time.c
arch/tile/kernel/time.c
arch/x86/kernel/vsyscall_gtod.c
arch/x86/kvm/x86.c
include/linux/timekeeper_internal.h
kernel/time/timekeeping.c