mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 17:36:57 +07:00
cd4d09ec6f
Move them to a separate header and have the following dependency: x86/cpufeatures.h <- x86/processor.h <- x86/cpufeature.h This makes it easier to use the header in asm code and not include the whole cpufeature.h and add guards for asm. Suggested-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1453842730-28463-5-git-send-email-bp@alien8.de Signed-off-by: Ingo Molnar <mingo@kernel.org>
20 lines
343 B
C
20 lines
343 B
C
#ifndef BOOT_CPUFLAGS_H
|
|
#define BOOT_CPUFLAGS_H
|
|
|
|
#include <asm/cpufeatures.h>
|
|
#include <asm/processor-flags.h>
|
|
|
|
struct cpu_features {
|
|
int level; /* Family, or 64 for x86-64 */
|
|
int model;
|
|
u32 flags[NCAPINTS];
|
|
};
|
|
|
|
extern struct cpu_features cpu;
|
|
extern u32 cpu_vendor[3];
|
|
|
|
int has_eflag(unsigned long mask);
|
|
void get_cpuflags(void);
|
|
|
|
#endif
|