]> git.karo-electronics.de Git - linux-beck.git/commit
x86/mce: Define mce_severity function pointer
authorAravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Mon, 23 Mar 2015 15:42:53 +0000 (10:42 -0500)
committerBorislav Petkov <bp@suse.de>
Tue, 24 Mar 2015 11:14:15 +0000 (12:14 +0100)
commit43eaa2a1ad70d72876cdbb2eb5450a2665e4770f
tree3da03b9d29bc15d06f19348f34a72d29f5a2ab49
parentbf80bbd7dcf525e41e0673fbaa8cd21d2344b460
x86/mce: Define mce_severity function pointer

Rename mce_severity() to mce_severity_intel() and assign the
mce_severity function pointer to mce_severity_amd() during init on AMD.
This way, we can avoid a test to call mce_severity_amd every time we get
into mce_severity(). And it's cleaner to do it this way.

Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Suggested-by: Tony Luck <tony.luck@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Chen Yucong <slaoub@gmail.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1427125373-2918-3-git-send-email-Aravind.Gopalakrishnan@amd.com
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce-internal.h
arch/x86/kernel/cpu/mcheck/mce-severity.c
arch/x86/kernel/cpu/mcheck/mce.c