xen/x86: Drop unnecessary barriers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 2 Dec 2016 15:00:41 +0000 (15:00 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 3 Jan 2018 13:02:54 +0000 (13:02 +0000)
commit6abb6f092e0b7035d0155607f8cb194ca9663712
treee60ce764274a27d271e87205bccc0ba2b4cee0e8
parent7762c2d6f4382776d97446f3fdaa1838443720cb
xen/x86: Drop unnecessary barriers

x86's current implementation of wmb() is a compiler barrier.  As a result, the
only change in this patch is to remove an mfence instruction from
cpuidle_disable_deep_cstate().

None of these barriers serve any purpose.  They are not synchronising with
remote cpus, and their compiler-barrier properties are not needed for
correctness purposes.

Furthermore, these wmb()'s specifically do not want to turn into sfence
instructions in future changes where wmb()'s implementation is corrected.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/crash.c
xen/arch/x86/smpboot.c