Commit 5f04fbb4 authored by Borislav Petkov's avatar Borislav Petkov Committed by zhaoxiaoqiang11
Browse files

x86/mce: Get rid of msr_ops

stable inclusion
from stable-v5.10.163
commit ec75bc43681bb1fc0695168123004a50b12aa9b3
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7PJ9N

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ec75bc43681bb1fc0695168123004a50b12aa9b3



----------------------------------------------------

[ Upstream commit 8121b8f9 ]

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: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarTony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20210922165101.18951-4-bp@alien8.de


Stable-dep-of: bc1b705b ("x86/MCE/AMD: Clear DFR errors found in THR handler")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent cfdfdf9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment