From: "tip-bot2 for Borislav Petkov" <tip-bot2@linutronix.de>
To: linux-tip-commits@vger.kernel.org
Cc: Borislav Petkov <bp@suse.de>,
Thomas Gleixner <tglx@linutronix.de>,
x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [tip: x86/microcode] x86/microcode: Remove unnecessary perf callback
Date: Tue, 31 May 2022 07:34:47 -0000 [thread overview]
Message-ID: <165398248772.4207.14917659484682510526.tip-bot2@tip-bot2> (raw)
In-Reply-To: <20220525161232.14924-5-bp@alien8.de>
The following commit has been merged into the x86/microcode branch of tip:
Commit-ID: 0c0fe08c76485fe0178ebb0fa1a2052c727abe94
Gitweb: https://git.kernel.org/tip/0c0fe08c76485fe0178ebb0fa1a2052c727abe94
Author: Borislav Petkov <bp@suse.de>
AuthorDate: Wed, 25 May 2022 18:12:32 +02:00
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitterDate: Tue, 31 May 2022 09:31:19 +02:00
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
---
arch/x86/kernel/cpu/microcode/core.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/x86/kernel/cpu/microcode/core.c b/arch/x86/kernel/cpu/microcode/core.c
index 801b44a..ad57e0e 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();
prev parent reply other threads:[~2022-05-31 7:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 16:12 [PATCH 0/4] x86/microcode: Drop old interface and default-disable late loading Borislav Petkov
2022-05-25 16:12 ` [PATCH 1/4] x86/microcode: Rip out the OLD_INTERFACE Borislav Petkov
2022-05-31 7:34 ` [tip: x86/microcode] " tip-bot2 for Borislav Petkov
2022-05-25 16:12 ` [PATCH 2/4] x86/microcode: Default-disable late loading Borislav Petkov
2022-05-31 7:34 ` [tip: x86/microcode] " tip-bot2 for Borislav Petkov
2022-05-25 16:12 ` [PATCH 3/4] x86/microcode: Taint and warn on " Borislav Petkov
2022-05-31 7:34 ` [tip: x86/microcode] " tip-bot2 for Borislav Petkov
2022-05-25 16:12 ` [PATCH 4/4] x86/microcode: Remove unnecessary perf callback Borislav Petkov
2022-05-31 7:34 ` tip-bot2 for Borislav Petkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=165398248772.4207.14917659484682510526.tip-bot2@tip-bot2 \
--to=tip-bot2@linutronix.de \
--cc=bp@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®