diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-10-10 12:14:32 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-10-28 10:09:02 +0200 |
commit | 2ace06ec0d997c4332582dbbb8b5e747d22c4400 (patch) | |
tree | e40dd12f383f59685e153bd20b2f78a3fd04c127 /arch/s390/kernel/time.c | |
parent | b1c0854d168cc5741e9568556e7d7cc3873c9cdc (diff) |
s390/time: adjust last_update_clock at clock synchronization
The last_update_clock time stamp in the lowcore should be adjusted by
the TOD clock delta that is created by the clock synchronization.
Otherwise the calculation of the steal time will be incorrect.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/time.c')
-rw-r--r-- | arch/s390/kernel/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index a8f1bad30fc9..5ba6c67ddd99 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c @@ -401,6 +401,8 @@ static void clock_sync_local(unsigned long long delta) S390_lowcore.clock_comparator += delta; set_clock_comparator(S390_lowcore.clock_comparator); } + /* Adjust the last_update_clock time-stamp. */ + S390_lowcore.last_update_clock += delta; } /* Single threaded workqueue used for stp sync events */ |