From: Richard Weinberger <richard@nod.at>
To: x86@kernel.org
Cc: linux-kernel@vger.kernel.org, tglx@kernel.org, mingo@redhat.com,
bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com,
Richard Weinberger <richard@nod.at>
Subject: [PATCH 2/2] [RFC] x86: Remove clear_cpu_bug()
Date: Mon, 16 Feb 2026 11:43:43 +0100 [thread overview]
Message-ID: <20260216104343.3625292-2-richard@nod.at> (raw)
In-Reply-To: <20260216104343.3625292-1-richard@nod.at>
F00F was the only user of clear_cpu_bug().
With no users left, remove this helper.
Signed-off-by: Richard Weinberger <richard@nod.at>
---
arch/x86/include/asm/cpufeature.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h
index 3ddc1d33399b..90680f978d43 100644
--- a/arch/x86/include/asm/cpufeature.h
+++ b/arch/x86/include/asm/cpufeature.h
@@ -125,7 +125,6 @@ static __always_inline bool _static_cpu_has(u16 bit)
#define cpu_has_bug(c, bit) cpu_has(c, (bit))
#define set_cpu_bug(c, bit) set_cpu_cap(c, (bit))
-#define clear_cpu_bug(c, bit) clear_cpu_cap(c, (bit))
#define static_cpu_has_bug(bit) static_cpu_has((bit))
#define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit))
--
2.51.0
next prev parent reply other threads:[~2026-02-16 10:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-16 10:43 [PATCH 1/2] x86: Don't clear X86_BUG_F00F before setting it Richard Weinberger
2026-02-16 10:43 ` Richard Weinberger [this message]
2026-02-20 1:30 ` [PATCH 2/2] [RFC] x86: Remove clear_cpu_bug() Sohil Mehta
2026-02-20 1:25 ` [PATCH 1/2] x86: Don't clear X86_BUG_F00F before setting it Sohil Mehta
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=20260216104343.3625292-2-richard@nod.at \
--to=richard@nod.at \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@kernel.org \
--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®