From 2ace06ec0d997c4332582dbbb8b5e747d22c4400 Mon Sep 17 00:00:00 2001 From: Martin Schwidefsky Date: Mon, 10 Oct 2016 12:14:32 +0200 Subject: [PATCH] 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 --- arch/s390/kernel/time.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.20.1