]> git.karo-electronics.de Git - linux-beck.git/commitdiff
s390/time: adjust last_update_clock at clock synchronization
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 10 Oct 2016 10:14:32 +0000 (12:14 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 28 Oct 2016 08:09:02 +0000 (10:09 +0200)
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>
arch/s390/kernel/time.c

index a8f1bad30fc9a52ede6d4a1cf637f8f62c43bcab..5ba6c67ddd99c9b332aeb9f925c94d91d528ee7b 100644 (file)
@@ -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 */