x86, mce: Consolidate AMD mcheck initialization
PATCH v3 1/1 x86, mce: Consolidate AMD mcheck initialization
amd_k8.c did a lot of common work and very little K8 specific work. So merge init functions of amd_f10.c and amd_k8.c and move it into the common amd_mcheck_init handler. With that done, there is not much left in either files, so fold all code into just one file - mce_amd.c
While at it, update the comments regarding documentation with correct URL's and revision numbers.
Also, update copyright info.
Changes in V2:
- Fix coding style issues
Changes in V3:
- More coding style fixes.
--- xen/arch/x86/cpu/mcheck/Makefile | 2 - xen/arch/x86/cpu/mcheck/amd_f10.c | 118 -------------------------- xen/arch/x86/cpu/mcheck/amd_k8.c | 117 -------------------------- xen/arch/x86/cpu/mcheck/mce_amd.c | 167 +++++++++++++++++++++++++++++++++---- 4 files changed, 151 insertions(+), 253 deletions(-) delete mode 100644 xen/arch/x86/cpu/mcheck/amd_f10.c delete mode 100644 xen/arch/x86/cpu/mcheck/amd_k8.c
xen/arch/x86/cpu/mcheck/Makefile +0 -2
@@ -1,6 +1,4 @@ obj-y += amd_nonfatal.o -obj-y += amd_k8.o -obj-y += amd_f10.o obj-y += mce_amd.o obj-y += mcaction.o obj-y += barrier.o
xen/arch/x86/cpu/mcheck/amd_f10.c deleted +0 -118
118 lines not on this page · raw message
xen/arch/x86/cpu/mcheck/amd_k8.c deleted +0 -117
117 lines not on this page · raw message
xen/arch/x86/cpu/mcheck/mce_amd.c +151 -16
202 lines not on this page · raw message
Signature · 1 line
1.7.9.5
Quoted 17 lines · Aravind Gopalakrishnan
amd_k8.cdid a lot of common work and very little K8 specific work. So merge init functions ofamd_f10.candamd_k8.cand move it into the commonamd_mcheck_inithandler. With that done, there is not much left in either files, so fold all code into just one file -mce_amd.cWhile at it, update the comments regarding documentation with correct URL's and revision numbers.
Also, update copyright info.
Changes in V2:
- Fix coding style issues
Changes in V3:
- More coding style fixes.Signed-off-by Aravind Gopalakrishnan <[email protected]>
Quoted 10 lines
--- xen/arch/x86/cpu/mcheck/Makefile | 2 - xen/arch/x86/cpu/mcheck/amd_f10.c | 118 -------------------------- xen/arch/x86/cpu/mcheck/amd_k8.c | 117 -------------------------- xen/arch/x86/cpu/mcheck/mce_amd.c | 167 +++++++++++++++++++++++++++++++++---- 4 files changed, 151 insertions(+), 253 deletions(-)delete mode 100644
xen/arch/x86/cpu/mcheck/amd_f10.cdelete mode 100644xen/arch/x86/cpu/mcheck/amd_k8.c
Missed a space between '--dry-run' and Jinsong's email. :( Resending it with corrected mail id.
-Aravind.