From: Martin Schwidefsky Date: Mon, 10 Oct 2016 10:14:32 +0000 (+0200) Subject: s390/time: adjust last_update_clock at clock synchronization X-Git-Tag: MMI-PSA29.97-13-9~6596^2~66 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ace06ec0d997c4332582dbbb8b5e747d22c4400;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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 */