x86/MCE: Implement clearbank callback for AMD
authorChristoph Egger <Christoph.Egger@amd.com>
Thu, 25 Oct 2012 12:28:09 +0000 (14:28 +0200)
committerChristoph Egger <Christoph.Egger@amd.com>
Thu, 25 Oct 2012 12:28:09 +0000 (14:28 +0200)
commit78c579426fb565e5eb446ab653176fe7f2f7c4c4
treeafcafd0c516a805df4ab083c0d0e9a521787d816
parent2392dcbcdeb0b038faa523c0f57735c14aa2d60b
x86/MCE: Implement clearbank callback for AMD

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Move initialization of mce_clear_banks into common code (would not get
initialized on AMD CPUs otherwise). Mark per-CPU struct mce_bank
pointers read-mostly.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/amd_k8.c
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce.h
xen/arch/x86/cpu/mcheck/mce_intel.c
xen/arch/x86/cpu/mcheck/mctelem.h
xen/arch/x86/cpu/mcheck/non-fatal.c