at v4.13 20 lines 378 B view raw
1#ifndef BOOT_CPUFLAGS_H 2#define BOOT_CPUFLAGS_H 3 4#include <asm/cpufeatures.h> 5#include <asm/processor-flags.h> 6 7struct cpu_features { 8 int level; /* Family, or 64 for x86-64 */ 9 int family; /* Family, always */ 10 int model; 11 u32 flags[NCAPINTS]; 12}; 13 14extern struct cpu_features cpu; 15extern u32 cpu_vendor[3]; 16 17int has_eflag(unsigned long mask); 18void get_cpuflags(void); 19 20#endif