diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-02-12 16:52:37 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-12 17:29:26 -0500 |
commit | c98aa86df3169e5d6275305376043134caa69831 (patch) | |
tree | 2c6f7f675b62748c6db3bf7ce316b5977f12305c /kernel | |
parent | 96b5a46e2a72dc1829370c87053e0cd558d58bc0 (diff) |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/timeconst.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl index 62b1287932ed..41468035473c 100644 --- a/kernel/timeconst.pl +++ b/kernel/timeconst.pl | |||
@@ -339,7 +339,7 @@ sub output($@) | |||
339 | print "\n"; | 339 | print "\n"; |
340 | 340 | ||
341 | foreach $pfx ('HZ_TO_MSEC','MSEC_TO_HZ', | 341 | foreach $pfx ('HZ_TO_MSEC','MSEC_TO_HZ', |
342 | 'USEC_TO_HZ','HZ_TO_USEC') { | 342 | 'HZ_TO_USEC','USEC_TO_HZ') { |
343 | foreach $bit (32, 64) { | 343 | foreach $bit (32, 64) { |
344 | foreach $suf ('MUL', 'ADJ', 'SHR') { | 344 | foreach $suf ('MUL', 'ADJ', 'SHR') { |
345 | printf "#define %-23s %s\n", | 345 | printf "#define %-23s %s\n", |