From: H. Peter Anvin Date: Tue, 12 Feb 2008 21:52:37 +0000 (-0800) Subject: timeconst.pl: correct reversal of USEC_TO_HZ and HZ_TO_USEC X-Git-Tag: v2.6.25-rc2~78 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c98aa86df3169e5d6275305376043134caa69831;p=linux-2.6-omap-h63xx.git 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 Tested-by: Carlos R. Mafra Signed-off-by: Linus Torvalds --- diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl index 62b1287932e..41468035473 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",