x86/mce/amd: Factor out logging mechanism
authorAravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Wed, 6 May 2015 11:58:53 +0000 (06:58 -0500)
committerBorislav Petkov <bp@suse.de>
Wed, 6 May 2015 17:49:20 +0000 (19:49 +0200)
commitafdf344e08fbec28ab2204a626fa1f260dcb68be
tree66ac120abcf8a7590e8956df40106faadaba7d00
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22
x86/mce/amd: Factor out logging mechanism

Refactor the code here to setup struct mce and call mce_log() to log
the error. We're going to reuse this in a later patch as part of the
deferred error interrupt enablement.

No functional change is introduced.

Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Aravind Gopalakrishnan <Aravind.Gopalakrishnan@amd.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: x86-ml <x86@kernel.org>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1430913538-1415-2-git-send-email-Aravind.Gopalakrishnan@amd.com
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/kernel/cpu/mcheck/mce_amd.c