mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
f6894fdfa8
commit
d07f4e6ef2
2 files changed
+4
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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__ */
|
||||
|
||||
/*
|
||||
|
||||