Skip to content

Commit

Permalink
timeconst.pl: correct reversal of USEC_TO_HZ and HZ_TO_USEC
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
H. Peter Anvin authored and Linus Torvalds committed Feb 12, 2008
1 parent 96b5a46 commit c98aa86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/timeconst.pl
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ ($@)
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",
Expand Down

0 comments on commit c98aa86

Please sign in to comment.