x86/include: de-assemblify cpuid.h

There's nothing in that header which assembly files would need. Arrange
for cpufeatureset.h to be included directly by cpufeature.h in that case,
allowing respective guarding to be dropped.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
Jan Beulich committed 2025-11-20 11:26:56 +01:00
1 parent f6894fdfa8
commit d07f4e6ef2
2 files changed
+4 -2

No files matched your search

+4
View File
@@ -10,7 +10,11 @@
#include <xen/const.h>
#include <xen/macros.h>
#ifndef __ASSEMBLY__
#include <asm/cpuid.h>
#else
#include <asm/cpufeatureset.h>
#endif
#define cpufeat_word(idx) ((idx) / 32)
#define cpufeat_bit(idx) ((idx) % 32)
-2
View File
@@ -3,7 +3,6 @@
#include <asm/cpufeatureset.h>
#ifndef __ASSEMBLY__
#include <xen/types.h>
#include <xen/kernel.h>
#include <xen/percpu.h>
@@ -50,7 +49,6 @@ struct cpuid_leaf;
void guest_cpuid(const struct vcpu *v, uint32_t leaf,
uint32_t subleaf, struct cpuid_leaf *res);
#endif /* __ASSEMBLY__ */
#endif /* !__X86_CPUID_H__ */
/*
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.