mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
timeconst.pl: correct reversal of USEC_TO_HZ and HZ_TO_USEC
The USEC_TO_HZ and HZ_TO_USEC constant sets were mislabelled, with seriously incorrect results. This among other things manifested itself as cpufreq not working when a tickless kernel was configured. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Tested-by: Carlos R. Mafra <crmafra@ift.unesp.br> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
96b5a46e2a
commit
c98aa86df3
1 changed files with 1 additions and 1 deletions
|
@ -339,7 +339,7 @@ sub output($@)
|
|||
print "\n";
|
||||
|
||||
foreach $pfx ('HZ_TO_MSEC','MSEC_TO_HZ',
|
||||
'USEC_TO_HZ','HZ_TO_USEC') {
|
||||
'HZ_TO_USEC','USEC_TO_HZ') {
|
||||
foreach $bit (32, 64) {
|
||||
foreach $suf ('MUL', 'ADJ', 'SHR') {
|
||||
printf "#define %-23s %s\n",
|
||||
|
|
Loading…
Reference in a new issue