linux-stable/arch/s390/kernel
Sven Schnelle 02f0fa6423 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:25:56 +02:00
..
syscalls
vdso32
vdso64
.gitignore
abs_lowcore.c
alternative.c
asm-offsets.c
audit.c
audit.h
cache.c
compat_audit.c
compat_linux.c
compat_linux.h
compat_ptrace.h
compat_signal.c
cpcmd.c
cpufeature.c
crash_dump.c
debug.c
diag.c
dis.c
dumpstack.c
early_printk.c
early.c
earlypgm.S
ebcdic.c
entry.h
entry.S s390/entry: Fix last breaking event handling in case of stack corruption 2025-07-06 10:58:03 +02:00
fpu.c
ftrace.c
ftrace.h
guarded_storage.c
head64.S
idle.c
ima_arch.c
ipl_vmparm.c
ipl.c
irq.c
jump_label.c
kdebugfs.c
kexec_elf.c
kexec_image.c
kprobes_insn_page.S
kprobes.c
lgr.c
machine_kexec_file.c
machine_kexec_reloc.c
machine_kexec.c
Makefile
mcount.S
module.c
nmi.c
nospec-branch.c
nospec-sysfs.c
numa.c
os_info.c
perf_cpum_cf_common.c
perf_cpum_cf_events.c
perf_cpum_cf.c
perf_cpum_sf.c s390/cpum_sf: Handle CPU hotplug remove during sampling 2024-12-14 19:54:37 +01:00
perf_event.c
perf_pai_crypto.c
perf_pai_ext.c
perf_regs.c
process.c
processor.c
ptrace.c
reipl.S
relocate_kernel.S
runtime_instr.c
setup.c
signal.c
smp.c
stacktrace.c
sthyi.c
syscall.c
sysinfo.c
text_amode31.S
time.c s390/stp: Remove udelay from stp_sync_clock() 2025-08-28 16:25:56 +02:00
topology.c
trace.c
traps.c s390/traps: Fix test_monitor_call() inline assembly 2025-03-13 12:53:15 +01:00
unwind_bc.c
uprobes.c
uv.c
vdso.c
vmlinux.lds.S
vtime.c