mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Carlos R. Mafra" <crmafra@gmail.com>
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Eric Piel <E.A.B.Piel@tudelft.nl>
Subject: Re: [PATCH] timeconst.pl: correct reversal of USEC_TO_HZ and HZ_TO_USEC
Date: Tue, 12 Feb 2008 20:25:05 -0200	[thread overview]
Message-ID: <47B21CC1.80901@gmail.com> (raw)
In-Reply-To: <200802122156.m1CLufgn013359@tazenda.hos.anvin.org>

H. Peter Anvin wrote:
> 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>


> ---
>  kernel/timeconst.pl |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl
> index 62b1287..4146803 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",


      reply	other threads:[~2008-02-12 22:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-12 21:52 H. Peter Anvin
2008-02-12 22:25 ` Carlos R. Mafra [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47B21CC1.80901@gmail.com \
    --to=crmafra@gmail.com \
    --cc=E.A.B.Piel@tudelft.nl \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome