s390/time: ensure get_clock_monotonic() returns monotonic values
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 29 Oct 2019 13:09:47 +0000 (14:09 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 31 Oct 2019 16:20:53 +0000 (17:20 +0100)
commit011620688a71f2f1fe9901dbc2479a7c01053196
tree8a7733829e4536f2602ee38943d16c305b5e4df2
parent6756dd9b890fe50c01a6e7546bd498d57ddb98ae
s390/time: ensure get_clock_monotonic() returns monotonic values

The current implementation of get_clock_monotonic() leaves it up to
the caller to call the function with preemption disabled. The only
core kernel caller (sched_clock) however does not disable preemption.

In order to make sure that all callers of this function see monotonic
values handle disabling preemption within the function itself.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/timex.h