]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/time: LPAR offset handling
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 31 May 2016 08:16:24 +0000 (10:16 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 13 Jun 2016 13:58:20 +0000 (15:58 +0200)
commit4027789192d149678262ad606b2d7e2a61bed0f2
treecb58f29b1ddf8e1f06eee12c67fa2a846ee0e7ad
parent9dc06ccf4699db81b88a6ff45a8acefd6c278327
s390/time: LPAR offset handling

It is possible to specify a user offset for the TOD clock, e.g. +2 hours.
The TOD clock will carry this offset even if the clock is synchronized
with STP. This makes the time stamps acquired with get_sync_clock()
useless as another LPAR migth use a different TOD offset.

Use the PTFF instrution to get the TOD epoch difference and subtract
it from the TOD clock value to get a physical timestamp. As the epoch
difference contains the sync check delta as well the LPAR offset value
to the physical clock needs to be refreshed after each clock
synchronization.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/timex.h
arch/s390/kernel/early.c
arch/s390/kernel/time.c
drivers/s390/block/dasd_eckd.c