提交 c98aa86d 编写于 作者: H H. Peter Anvin 提交者: Linus Torvalds

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: NH. Peter Anvin <hpa@zytor.com>
Tested-by: NCarlos R. Mafra <crmafra@ift.unesp.br>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 96b5a46e
......@@ -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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册