]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1bcd4ecdb4d739f1a98ce1474a1e3fa993b2da7
tree59e6b461d8b6265aa51e21afd735aea032fa0fb1
parentf912cb16b42b8768149a40fc35ef0c6d8c8944e2
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