Skip to content

Commit 0c0fe08

Browse files
suryasaimadhuKAGA-KOKO
authored andcommitted
x86/microcode: Remove unnecessary perf callback
c93dc84 ("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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d23d33e commit 0c0fe08

File tree

1 file changed

+0
-3
lines changed
  • arch/x86/kernel/cpu/microcode

1 file changed

+0
-3
lines changed

arch/x86/kernel/cpu/microcode/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,10 +756,7 @@ static int __init microcode_init(void)
756756

757757
cpus_read_lock();
758758
mutex_lock(&microcode_mutex);
759-
760759
error = subsys_interface_register(&mc_cpu_interface);
761-
if (!error)
762-
perf_check_microcode();
763760
mutex_unlock(&microcode_mutex);
764761
cpus_read_unlock();
765762

0 commit comments

Comments
 (0)