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>
max_cstate = 1;
}
- mb();
-
hpet_disable_legacy_broadcast();
}
void x86_mce_vector_register(x86_mce_vector_t hdlr)
{
_machine_check_vector = hdlr;
- wmb();
}
/* Call the installed machine check handler for this CPU setup. */
mcabank_clear(i);
else if ( who == MCA_MCE_SCAN && need_clear )
mcabanks_set(i, clear_bank);
-
- wmb();
}
if ( mig && errcnt > 0 )
write_atomic((unsigned long *)__va(__pa(&exception_table[TRAP_nmi])),
(unsigned long)&do_nmi_crash);
- /* Ensure the new callback function is set before sending out the NMI. */
- wmb();
-
smp_send_nmi_allbutself();
msecs = 1000; /* Wait at most a second for the other cpus to stop */
spin_debug_enable();
set_cpu_sibling_map(cpu);
notify_cpu_starting(cpu);
- wmb();
/*
* We need to hold vector_lock so there the set of online cpus
local_irq_enable();
mtrr_ap_init();
- wmb();
startup_cpu_idle_loop();
}