Files
linux-stable-mirror/arch/s390/kernel
Sven Schnelle bb9a6585c2 s390/stp: Remove udelay from stp_sync_clock()
[ Upstream commit b367017cda ]

When an stp sync check is handled on a system with multiple
cpus each cpu gets a machine check but only the first one
actually handles the sync operation. All other CPUs spin
waiting for the first one to finish with a short udelay().
But udelay can't be used here as the first CPU modifies tod_clock_base
before performing the sync op. During this timeframe
get_tod_clock_monotonic() might return a non-monotonic time.

The time spent waiting should be very short and udelay is a busy loop
anyways, therefore simply remove the udelay.

Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-28 16:24:20 +02:00
..
2023-02-01 08:27:20 +01:00
2024-09-04 13:23:21 +02:00
2023-03-17 08:48:57 +01:00
2023-03-10 09:39:50 +01:00
2023-02-01 08:27:20 +01:00
2023-08-11 15:13:49 +02:00