https://github.com/torvalds/linux
Raw File
Tip revision: eaa27f34e91a14cdceed26ed6c6793ec1d186115 authored by Linus Torvalds on 11 January 2015, 20:44:53 UTC
linux 3.19-rc4
Tip revision: eaa27f3
cpuflags.h
#ifndef BOOT_CPUFLAGS_H
#define BOOT_CPUFLAGS_H

#include <asm/cpufeature.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
back to top