From: Borislav Petkov <bp@alien8.de>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiri Olsa <jolsa@redhat.com>, X86 ML <x86@kernel.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH 1/5] x86/cpufeature: Provide helper to set bugs bits
Date: Fri, 9 Dec 2016 19:29:08 +0100 [thread overview]
Message-ID: <20161209182912.2726-2-bp@alien8.de> (raw)
In-Reply-To: <20161209182912.2726-1-bp@alien8.de>
From: Borislav Petkov <bp@suse.de>
Will be used in a later patch to set bug bits for bugs which need late
detection.
Signed-off-by: Borislav Petkov <bp@suse.de>
---
arch/x86/include/asm/cpufeature.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h
index 1d2b69fc0ceb..d59c15c3defd 100644
--- a/arch/x86/include/asm/cpufeature.h
+++ b/arch/x86/include/asm/cpufeature.h
@@ -204,6 +204,7 @@ static __always_inline __pure bool _static_cpu_has(u16 bit)
#define static_cpu_has_bug(bit) static_cpu_has((bit))
#define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit))
+#define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit))
#define MAX_CPU_FEATURES (NCAPINTS * 32)
#define cpu_have_feature boot_cpu_has
--
2.11.0
next prev parent reply other threads:[~2016-12-09 18:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-09 18:29 [PATCH 0/5] x86/CPU: Improve AMD Erratum 400 workaround Borislav Petkov
2016-12-09 18:29 ` Borislav Petkov [this message]
2016-12-09 20:30 ` [tip:x86/idle] x86/cpufeature: Provide helper to set bugs bits tip-bot for Borislav Petkov
2016-12-09 18:29 ` [PATCH 2/5] x86/bugs: Separate AMD E400 erratum and C1E bug Borislav Petkov
2016-12-09 20:31 ` [tip:x86/idle] " tip-bot for Thomas Gleixner
2016-12-09 18:29 ` [PATCH 3/5] x86/amd: Check for the C1E bug post ACPI subsystem init Borislav Petkov
2016-12-09 20:31 ` [tip:x86/idle] " tip-bot for Thomas Gleixner
2016-12-09 18:29 ` [PATCH 4/5] x86/amd: Simplify AMD E400 aware idle routine Borislav Petkov
2016-12-09 20:32 ` [tip:x86/idle] " tip-bot for Borislav Petkov
2016-12-09 18:29 ` [PATCH 5/5] x86: Remove empty idle.h header Borislav Petkov
2016-12-09 20:32 ` [tip:x86/idle] " tip-bot for Thomas Gleixner
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=20161209182912.2726-2-bp@alien8.de \
--to=bp@alien8.de \
--cc=jolsa@redhat.com \
--cc=linux-kernel@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