diff options
author | Borislav Petkov <bp@suse.de> | 2022-05-25 18:12:32 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2022-05-31 09:31:19 +0200 |
commit | 0c0fe08c76485fe0178ebb0fa1a2052c727abe94 (patch) | |
tree | 8b6282ef09d39f6ffeb1d97799fa600f5912cd91 /arch | |
parent | d23d33ea0fcdc4bbb484990bf53867f99c63ccab (diff) | |
download | linux-stable-0c0fe08c76485fe0178ebb0fa1a2052c727abe94.tar.gz linux-stable-0c0fe08c76485fe0178ebb0fa1a2052c727abe94.tar.bz2 linux-stable-0c0fe08c76485fe0178ebb0fa1a2052c727abe94.zip |
x86/microcode: Remove unnecessary perf callback
c93dc84cbe32 ("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: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220525161232.14924-5-bp@alien8.de
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kernel/cpu/microcode/core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c index 801b44ac3851..ad57e0e4d674 100644 --- a/arch/x86/kernel/cpu/microcode/core.c +++ b/arch/x86/kernel/cpu/microcode/core.c @@ -756,10 +756,7 @@ static int __init microcode_init(void) cpus_read_lock(); mutex_lock(µcode_mutex); - error = subsys_interface_register(&mc_cpu_interface); - if (!error) - perf_check_microcode(); mutex_unlock(µcode_mutex); cpus_read_unlock(); |