diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-02-12 13:52:37 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-12 14:29:26 -0800 |
commit | c98aa86df3169e5d6275305376043134caa69831 (patch) | |
tree | 2c6f7f675b62748c6db3bf7ce316b5977f12305c | |
parent | 96b5a46e2a72dc1829370c87053e0cd558d58bc0 (diff) | |
download | op-kernel-dev-c98aa86df3169e5d6275305376043134caa69831.zip op-kernel-dev-c98aa86df3169e5d6275305376043134caa69831.tar.gz |
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>
-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 62b1287..4146803 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", |