Linux Audio

Check our new training course

Loading...
v3.15
 
 1#ifndef BOOT_CPUFLAGS_H
 2#define BOOT_CPUFLAGS_H
 3
 4#include <asm/cpufeature.h>
 5#include <asm/processor-flags.h>
 6
 7struct cpu_features {
 8	int level;		/* Family, or 64 for x86-64 */
 
 9	int model;
10	u32 flags[NCAPINTS];
11};
12
13extern struct cpu_features cpu;
14extern u32 cpu_vendor[3];
15
16int has_eflag(unsigned long mask);
17void get_cpuflags(void);
18
19#endif
v5.9
 1/* SPDX-License-Identifier: GPL-2.0 */
 2#ifndef BOOT_CPUFLAGS_H
 3#define BOOT_CPUFLAGS_H
 4
 5#include <asm/cpufeatures.h>
 6#include <asm/processor-flags.h>
 7
 8struct cpu_features {
 9	int level;		/* Family, or 64 for x86-64 */
10	int family;		/* Family, always */
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);
19void get_cpuflags(void);
20
21#endif