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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:35:30 +0000 (16:35 +0100)
commitf95ec2bc880d7dc14603aab802f8c893a478d050
treea845a1291b4244ece41214f1b7262cd66a3d3c1a
parent8fa7f8d5ba9d62dce187324b751b643d9b1b2ade
s390/time: ensure get_clock_monotonic() returns monotonic values

[ Upstream commit 011620688a71f2f1fe9901dbc2479a7c01053196 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/include/asm/timex.h