]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/x86/boot/cpuflags.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / boot / cpuflags.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
dd78b973
KC
2#ifndef BOOT_CPUFLAGS_H
3#define BOOT_CPUFLAGS_H
4
cd4d09ec 5#include <asm/cpufeatures.h>
dd78b973
KC
6#include <asm/processor-flags.h>
7
8struct cpu_features {
9 int level; /* Family, or 64 for x86-64 */
e4a84be6 10 int family; /* Family, always */
dd78b973
KC
11 int model;
12 u32 flags[NCAPINTS];
13};
14
15extern struct cpu_features cpu;
16extern u32 cpu_vendor[3];
17
18int has_eflag(unsigned long mask);
6e6a4932 19void get_cpuflags(void);
dd78b973
KC
20
21#endif