Commit c98aa86df3169e5d6275305376043134caa69831

Authored by H. Peter Anvin
Committed by Linus Torvalds
1 parent 96b5a46e2a

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -339,7 +339,7 @@
339 339 print "\n";
340 340  
341 341 foreach $pfx ('HZ_TO_MSEC','MSEC_TO_HZ',
342   - 'USEC_TO_HZ','HZ_TO_USEC') {
  342 + 'HZ_TO_USEC','USEC_TO_HZ') {
343 343 foreach $bit (32, 64) {
344 344 foreach $suf ('MUL', 'ADJ', 'SHR') {
345 345 printf "#define %-23s %s\n",