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: v4.14-rc1~1907^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ace06ec0d997c4332582dbbb8b5e747d22c4400;p=platform%2Fkernel%2Flinux-rpi.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 a8f1bad..5ba6c67 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 */