[PATCH v6 71/90] x86/cpuid: Parse CPUID(0x80000007)

Ahmed S. Darwish posted 90 patches 6 days, 16 hours ago
[PATCH v6 71/90] x86/cpuid: Parse CPUID(0x80000007)
Posted by Ahmed S. Darwish 6 days, 16 hours ago
Parse CPUID(0x80000007).

This allows the cpuinfo_x86::x86_power call sites to be converted to the
CPUID APIs next.

Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de>
---
 arch/x86/include/asm/cpuid/types.h | 1 +
 arch/x86/kernel/cpu/cpuid_parser.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/x86/include/asm/cpuid/types.h b/arch/x86/include/asm/cpuid/types.h
index deddb534486a..6180acd35f59 100644
--- a/arch/x86/include/asm/cpuid/types.h
+++ b/arch/x86/include/asm/cpuid/types.h
@@ -227,6 +227,7 @@ struct cpuid_leaves {
 	CPUID_LEAF   (  0x80000004,	0  );
 	CPUID_LEAF   (  0x80000005,	0  );
 	CPUID_LEAF   (  0x80000006,	0  );
+	CPUID_LEAF   (  0x80000007,	0  );
 	CPUID_LEAF   (  0x80000008,	0  );
 	CPUID_LEAF_N (  0x8000001d,	8  );
 	CPUID_LEAF   (  0x80000022,	0  );
diff --git a/arch/x86/kernel/cpu/cpuid_parser.h b/arch/x86/kernel/cpu/cpuid_parser.h
index 59a4d562320a..c81f76c1c077 100644
--- a/arch/x86/kernel/cpu/cpuid_parser.h
+++ b/arch/x86/kernel/cpu/cpuid_parser.h
@@ -161,6 +161,7 @@ struct cpuid_parse_entry {
 	CPUID_PARSE_ENTRY   (	0x80000004,	0,		generic			),	\
 	CPUID_PARSE_ENTRY   (	0x80000005,	0,		generic			),	\
 	CPUID_PARSE_ENTRY   (	0x80000006,	0,		generic			),	\
+	CPUID_PARSE_ENTRY   (	0x80000007,	0,		generic			),	\
 	CPUID_PARSE_ENTRY   (	0x80000008,	0,		generic			),	\
 	CPUID_PARSE_ENTRY_N (	0x8000001d,			deterministic_cache	),	\
 	CPUID_PARSE_ENTRY   (	0x80000022,	0,		generic			),	\
-- 
2.53.0