x86/smp: Remove pointless wmb()s from native_stop_other_cpus()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 15 Jun 2023 20:33:54 +0000 (22:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Jul 2023 11:16:23 +0000 (13:16 +0200)
commit50a1abc67702f76968162402d8fb113dd6e22f31
tree8774ed444e7eb1915b21eb68ec73f36e81a3871a
parente47037d28b7398d7a8f1a3e071087ea9dbfcebf5
x86/smp: Remove pointless wmb()s from native_stop_other_cpus()

commit 2affa6d6db28855e6340b060b809c23477aa546e upstream.

The wmb()s before sending the IPIs are not synchronizing anything.

If at all then the apic IPI functions have to provide or act as appropriate
barriers.

Remove these cargo cult barriers which have no explanation of what they are
synchronizing.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230615193330.378358382@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/smp.c