linux_dsm_epyc7002/arch/powerpc
Grant Likely ad9064d5e2 powerpc: Fix spin_event_timeout() to be robust over context switches
Current implementation of spin_event_timeout can be interrupted by an
IRQ or context switch after testing the condition, but before checking
the timeout.  This can cause the loop to report a timeout when the
condition actually became true in the middle.

This patch adds one final check of the condition upon exit of the loop
if the last test of the condition was still false.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-07-08 13:50:24 +10:00
..
boot powerpc/4xx: Have Warp take advantage of GPIO LEDs default-state = keep 2009-07-06 08:56:01 -04:00
configs powerpc/44x: Update Warp defconfig 2009-07-06 08:53:16 -04:00
include/asm powerpc: Fix spin_event_timeout() to be robust over context switches 2009-07-08 13:50:24 +10:00
kernel powerpc/perf_counter: Remove duplicated #include 2009-07-08 13:50:22 +10:00
kvm powerpc: Add configurable -Werror for arch/powerpc 2009-06-16 14:15:45 +10:00
lib powerpc: Add configurable -Werror for arch/powerpc 2009-06-16 14:15:45 +10:00
math-emu powerpc/math-emu: Fix efp dependence 2009-03-11 06:00:08 -05:00
mm powerpc: Use pr_devel() in do_dcache_icache_coherency() 2009-07-08 13:50:24 +10:00
oprofile powerpc: Remove unnecessary semicolons 2009-07-08 13:50:21 +10:00
platforms powerpc/cell: Use pr_devel() in axon_msi.c 2009-07-08 13:50:23 +10:00
sysdev powerpc: Remove unnecessary semicolons 2009-07-08 13:50:21 +10:00
xmon powerpc: Add configurable -Werror for arch/powerpc 2009-06-16 14:15:45 +10:00
Kconfig powerpc: Add irqtrace support for 32-bit powerpc 2009-06-26 14:37:27 +10:00
Kconfig.debug powerpc: Add configurable -Werror for arch/powerpc 2009-06-16 14:15:45 +10:00
Makefile powerpc: Move VMX and VSX asm code to vector.S 2009-06-09 16:46:25 +10:00