Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1539600 > unrolled thread

[PATCH 1/5] x86/cpufeature: Provide helper to set bugs bits

Started byBorislav Petkov <bp@alien8.de>
First post2016-12-09 19:30 +0100
Last post2016-12-09 21:40 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/5] x86/cpufeature: Provide helper to set bugs bits Borislav Petkov <bp@alien8.de> - 2016-12-09 19:30 +0100
    [tip:x86/idle] x86/cpufeature: Provide helper to set bugs bits tip-bot for Borislav Petkov <tipbot@zytor.com> - 2016-12-09 21:40 +0100

#1539600 — [PATCH 1/5] x86/cpufeature: Provide helper to set bugs bits

FromBorislav Petkov <bp@alien8.de>
Date2016-12-09 19:30 +0100
Subject[PATCH 1/5] x86/cpufeature: Provide helper to set bugs bits
Message-ID<sMy5I-6DX-11@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1539642 — [tip:x86/idle] x86/cpufeature: Provide helper to set bugs bits

Fromtip-bot for Borislav Petkov <tipbot@zytor.com>
Date2016-12-09 21:40 +0100
Subject[tip:x86/idle] x86/cpufeature: Provide helper to set bugs bits
Message-ID<sMA7v-7Po-1@gated-at.bofh.it>
In reply to#1539600
Commit-ID:  a588b9836447ac683a8f63949ad55265813826f5
Gitweb:     http://git.kernel.org/tip/a588b9836447ac683a8f63949ad55265813826f5
Author:     Borislav Petkov <bp@suse.de>
AuthorDate: Fri, 9 Dec 2016 19:29:08 +0100
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Fri, 9 Dec 2016 21:23:20 +0100

x86/cpufeature: Provide helper to set bugs bits

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>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20161209182912.2726-2-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.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 1d2b69f..d59c15c 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web