mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
75c5158f70
commit
d4f587c67f
16 changed files with 83 additions and 74 deletions
|
@ -182,7 +182,8 @@ void __init plat_time_init(void)
|
|||
setup_pit_timer();
|
||||
}
|
||||
|
||||
unsigned long read_persistent_clock(void)
|
||||
void read_persistent_clock(struct timespec *ts)
|
||||
{
|
||||
return -1;
|
||||
ts->tv_sec = -1;
|
||||
ts->tv_nsec = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue