summaryrefslogtreecommitdiffstats
path: root/kernel/timeconst.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-12 13:52:37 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-12 14:29:26 -0800
commitc98aa86df3169e5d6275305376043134caa69831 (patch)
tree2c6f7f675b62748c6db3bf7ce316b5977f12305c /kernel/timeconst.pl
parent96b5a46e2a72dc1829370c87053e0cd558d58bc0 (diff)
downloadlinux-c98aa86df3169e5d6275305376043134caa69831.tar.gz
linux-c98aa86df3169e5d6275305376043134caa69831.tar.bz2
linux-c98aa86df3169e5d6275305376043134caa69831.zip
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/timeconst.pl')
-rw-r--r--kernel/timeconst.pl2
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($@)
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",