timekeeping: Increase granularity of read_persistent_clock()
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 14 Aug 2009 13:47:31 +0000 (15:47 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 15 Aug 2009 08:55:46 +0000 (10:55 +0200)
commitd4f587c67fc39e0030ddd718675e252e208da4d7
tree2222681c57966cc6b8404afdff3ab1a09ac7ea69
parent75c5158f70c065b9704b924503d96e8297838f79
timekeeping: Increase granularity of read_persistent_clock()

The persistent clock of some architectures (e.g. s390) have a
better granularity than seconds. To reduce the delta between the
host clock and the guest clock in a virtualized system change the
read_persistent_clock function to return a struct timespec.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Acked-by: John Stultz <johnstul@us.ibm.com>
Cc: Daniel Walker <dwalker@fifo99.com>
LKML-Reference: <20090814134811.013873340@de.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
16 files changed:
arch/m68knommu/kernel/time.c
arch/mips/dec/time.c
arch/mips/lasat/ds1603.c
arch/mips/lasat/sysctl.c
arch/mips/lemote/lm2e/setup.c
arch/mips/mti-malta/malta-time.c
arch/mips/pmc-sierra/yosemite/setup.c
arch/mips/sibyte/swarm/setup.c
arch/mips/sni/time.c
arch/powerpc/kernel/time.c
arch/s390/kernel/time.c
arch/sh/kernel/time.c
arch/x86/kernel/rtc.c
arch/xtensa/kernel/time.c
include/linux/time.h
kernel/time/timekeeping.c