Skip to content

Commit a588b98

Browse files
suryasaimadhuKAGA-KOKO
authored andcommitted
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 <[email protected]> Cc: Jiri Olsa <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
1 parent 7a3e686 commit a588b98

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/include/asm/cpufeature.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ static __always_inline __pure bool _static_cpu_has(u16 bit)
204204

205205
#define static_cpu_has_bug(bit) static_cpu_has((bit))
206206
#define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit))
207+
#define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit))
207208

208209
#define MAX_CPU_FEATURES (NCAPINTS * 32)
209210
#define cpu_have_feature boot_cpu_has

0 commit comments

Comments
 (0)