-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 112806 b: refs/heads/master c: aa3341a h: refs/heads/master v: v3
- Loading branch information
H. Peter Anvin
committed
Sep 4, 2008
1 parent
d7a94ed
commit e7b5065
Showing
7 changed files
with
133 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 42390cdec5f6e6e2ee54f308474a6ef7dd16aa5c | ||
refs/heads/master: aa3341a168883654d1b13f5931c5ed2762537831 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/perl | ||
# | ||
# Generate the x86_cap_flags[] array from include/asm-x86/cpufeature.h | ||
# | ||
|
||
($in, $out) = @ARGV; | ||
|
||
open(IN, "< $in\0") or die "$0: cannot open: $in: $!\n"; | ||
open(OUT, "> $out\0") or die "$0: cannot create: $out: $!\n"; | ||
|
||
print OUT "#include <asm/cpufeature.h>\n\n"; | ||
print OUT "const char * const x86_cap_flags[NCAPINTS*32] = {\n"; | ||
|
||
while (defined($line = <IN>)) { | ||
if ($line =~ /^\s*\#\s*define\s+(X86_FEATURE_(\S+))\s+(.*)$/) { | ||
$macro = $1; | ||
$feature = $2; | ||
$tail = $3; | ||
if ($tail =~ /\/\*\s*\"([^"]*)\".*\*\//) { | ||
$feature = $1; | ||
} | ||
|
||
if ($feature ne '') { | ||
printf OUT "\t%-32s = \"%s\",\n", | ||
"[$macro]", "\L$feature"; | ||
} | ||
} | ||
} | ||
print OUT "};\n"; | ||
|
||
close(IN); | ||
close(OUT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* 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 */ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters