OSDN Git Service

edu: add smp_mb__after_rmw()
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 2 Mar 2023 10:16:13 +0000 (11:16 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Mar 2023 11:38:40 +0000 (12:38 +0100)
commit2482aeea4195ad84cf3d4e5b15b28ec5b420ed5a
treeb3226141339787c9698ba562f3e3b7eaef397f06
parent6c5df4b48f0c52a61342ecb307a43f4c2a3565c4
edu: add smp_mb__after_rmw()

Ensure ordering between clearing the COMPUTING flag and checking
IRQFACT, and between setting the IRQFACT flag and checking
COMPUTING.  This ensures that no wakeups are lost.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/misc/edu.c