summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/compressed/cpuflags.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/boot/compressed/cpuflags.c')
-rw-r--r--arch/x86/boot/compressed/cpuflags.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/cpuflags.c b/arch/x86/boot/compressed/cpuflags.c
new file mode 100644
index 000000000..0cc132389
--- /dev/null
+++ b/arch/x86/boot/compressed/cpuflags.c
@@ -0,0 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
+#include "../cpuflags.c"
+
+bool has_cpuflag(int flag)
+{
+ get_cpuflags();
+
+ return test_bit(flag, cpu.flags);
+}