x86/mce: Get rid of msr_ops
authorBorislav Petkov <bp@suse.de>
Thu, 2 Sep 2021 11:33:22 +0000 (13:33 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 23 Sep 2021 09:20:20 +0000 (11:20 +0200)
commit8121b8f947be0033f567619be204639a50cad298
tree59e6b461d8b6265aa51e21afd735aea032fa0fb1
parentcbe1de162d8297e941f01ac7dd399a11251352bc
x86/mce: Get rid of msr_ops

Avoid having indirect calls and use a normal function which returns the
proper MSR address based on ->smca setting.

No functional changes.

Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20210922165101.18951-4-bp@alien8.de
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/cpu/mce/internal.h