Commit c98aa86d authored by H. Peter Anvin's avatar H. Peter Anvin Committed by Linus Torvalds
Browse files 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: default avatarH. Peter Anvin <>
Tested-by: default avatarCarlos R. Mafra <>
Signed-off-by: default avatarLinus Torvalds <>
parent 96b5a46e
......@@ -339,7 +339,7 @@ sub output($@)
print "\n";
foreach $pfx ('HZ_TO_MSEC','MSEC_TO_HZ',
foreach $bit (32, 64) {
foreach $suf ('MUL', 'ADJ', 'SHR') {
printf "#define %-23s %s\n",
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment