mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
7414aa41a6
We have had a number of cases where <asm/cpufeature.h> (and its predecessors) have diverged substantially from the names list in /proc/cpuinfo. This patch generates the latter from the former. It retains the option for explicitly overriding the strings, but by making that require a separate action it should at least be less likely to happen. It would be good to do a future pass and rename strings that are gratuituously different in the kernel (/proc/cpuinfo is a userspace interface and must remain constant.) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
21 lines
417 B
C
21 lines
417 B
C
/*
|
|
* Strings for the various x86 power flags
|
|
*
|
|
* This file must not contain any executable code.
|
|
*/
|
|
|
|
#include <asm/cpufeature.h>
|
|
|
|
const char *const x86_power_flags[32] = {
|
|
"ts", /* temperature sensor */
|
|
"fid", /* frequency id control */
|
|
"vid", /* voltage id control */
|
|
"ttp", /* thermal trip */
|
|
"tm",
|
|
"stc",
|
|
"100mhzsteps",
|
|
"hwpstate",
|
|
"", /* tsc invariant mapped to constant_tsc */
|
|
/* nothing */
|
|
};
|