x86, hotplug: In the MWAIT case of play_dead, CLFLUSH the cache line
commitce5f68246bf2385d6174856708d0b746dc378f20
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 20 Sep 2010 20:04:45 +0000 (20 13:04 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 20 Sep 2010 22:51:59 +0000 (20 15:51 -0700)
treeba2436cd462a72222a995a6ba887f66232f50843
parenta68e5c94f7d3dd64fef34dd5d97e365cae4bb42a
x86, hotplug: In the MWAIT case of play_dead, CLFLUSH the cache line

When we're using MWAIT for play_dead, explicitly CLFLUSH the cache
line before executing MONITOR.  This is a potential workaround for the
Xeon 7400 erratum AAI65 after having a spurious wakeup and returning
around the loop.  "Potential" here because it is not certain that that
erratum could actually trigger; however, the CLFLUSH should be
harmless.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Acked-by: Venkatesh Pallipadi <venki@google.com>
Cc: Asit Mallick <asit.k.mallick@intel.com>
Cc: Arjan van de Ven <arjan@linux.kernel.org>
Cc: Len Brown <lenb@kernel.org>
arch/x86/kernel/smpboot.c