Add a compiler barrier where missing in CPU_BUSY_CYCLE() implems
authorjca <jca@openbsd.org>
Sun, 9 Jun 2024 21:15:29 +0000 (21:15 +0000)
committerjca <jca@openbsd.org>
Sun, 9 Jun 2024 21:15:29 +0000 (21:15 +0000)
commitb43d7c278ce9b35401a121323bd85088ec5b9443
tree4b52021e0f5f5704737f3a00cc751f8ec651fbb1
parentc5d0954bd6baeddabc855fdc7c3cecbb70a4d570
Add a compiler barrier where missing in CPU_BUSY_CYCLE() implems

Having differences between architectures is asking for problems. And
adding a barrier here just makes sense in most cases. This is also what
cpu_relax() provides in Linux land.

ok kettenis@ claudio@
sys/arch/alpha/include/cpu.h
sys/arch/amd64/include/cpu.h
sys/arch/arm/include/cpu.h
sys/arch/hppa/include/cpu.h
sys/arch/i386/include/cpu.h
sys/arch/m88k/include/cpu.h
sys/arch/mips64/include/cpu.h
sys/arch/powerpc64/include/cpu.h
sys/arch/sh/include/cpu.h