提交 732ec0d0 编写于 作者: B Borislav Petkov 提交者: Aichun Shi

x86/microcode: Remove unnecessary perf callback

mainline inclusion
from mainline-v5.19-rc1
commit 0c0fe08c
category: feature
feature: Backport Intel In Field Scan(IFS) multi-blob images support
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I6L337
CVE: N/A
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/
commit/?id=0c0fe08c

Intel-SIG: commit 0c0fe08c ("x86/microcode: Remove unnecessary perf callback")

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

x86/microcode: Remove unnecessary perf callback

c93dc84c ("perf/x86: Add a microcode revision check for SNB-PEBS")
checks whether the microcode revision has fixed PEBS issues.

This can happen either:

1. At PEBS init time, where the early microcode has been loaded already

2. During late loading, in the microcode_check() callback.

So remove the unnecessary call in the microcode loader init routine.
Signed-off-by: NBorislav Petkov <bp@suse.de>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220525161232.14924-5-bp@alien8.deSigned-off-by: NAichun Shi <aichun.shi@intel.com>
上级 309a506f
...@@ -773,10 +773,7 @@ int __init microcode_init(void) ...@@ -773,10 +773,7 @@ int __init microcode_init(void)
get_online_cpus(); get_online_cpus();
mutex_lock(&microcode_mutex); mutex_lock(&microcode_mutex);
error = subsys_interface_register(&mc_cpu_interface); error = subsys_interface_register(&mc_cpu_interface);
if (!error)
perf_check_microcode();
mutex_unlock(&microcode_mutex); mutex_unlock(&microcode_mutex);
put_online_cpus(); put_online_cpus();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册