mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 00:21:32 +00:00
6e6a4932b0
When a function is used in more than one file it may not be possible to immediately tell from context what the intended meaning is. As such, it is more important that the naming be self-evident. Thus, change get_flags() to get_cpuflags(). For consistency, change check_flags() to check_cpuflags() even though it is only used in cpucheck.c. Link: http://lkml.kernel.org/r/1381450698-28710-2-git-send-email-keescook@chromium.org Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
20 lines
342 B
C
20 lines
342 B
C
#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
|