]> err.no Git - linux-2.6/commitdiff
timeconst.pl: correct reversal of USEC_TO_HZ and HZ_TO_USEC
authorH. Peter Anvin <hpa@zytor.com>
Tue, 12 Feb 2008 21:52:37 +0000 (13:52 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 12 Feb 2008 22:29:26 +0000 (14:29 -0800)
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>
kernel/timeconst.pl

index 62b1287932ed4c8506ad2b8151c2dd778262b36e..41468035473ccbb943495466159173058862d6f0 100644 (file)
@@ -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",