From: Willy Tarreau <w@1wt.eu>
To: Toyo Abe <toyoa@mvista.com>
Cc: Andi Kleen <ak@suse.de>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH for 2.4] x86_64: Fix missing delay when the TSC counter just overflowed
Date: Wed, 20 Sep 2006 23:28:15 +0200 [thread overview]
Message-ID: <20060920212815.GA9397@1wt.eu> (raw)
In-Reply-To: <200609202143.k8KLhsxg007647@dhcp119.mvista.com>
On Wed, Sep 20, 2006 at 02:43:54PM -0700, Toyo Abe wrote:
> I'd seen a problem that *delay functions return in too short delay.
> It happens when the lower 32bit of TSC counter is overflowed.
> This patch fixes the problem. This is back-port of Andi Kleen's
> 2.6 fix.
>
> http://www.kernel.org/git/?p=linux/kernel/git/tglx/history.git;a=commit;h=6c51e28ffbbebf49437ec63ac4f9e385d60827e5
>
> Signed-off-by: Toyo Abe <toyoa@mvista.com>
>
> ---
>
> arch/x86_64/lib/delay.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86_64/lib/delay.c b/arch/x86_64/lib/delay.c
> index cc845d2..91345ee 100644
> --- a/arch/x86_64/lib/delay.c
> +++ b/arch/x86_64/lib/delay.c
> @@ -19,7 +19,7 @@ #endif
>
> void __delay(unsigned long loops)
> {
> - unsigned long bclock, now;
> + unsigned bclock, now;
>
> rdtscl(bclock);
> do
Queued.
Thanks Toyo,
Willy
prev parent reply other threads:[~2006-09-20 21:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-20 21:43 [PATCH for 2.4] x86_64: Fix missing delay when the TSC counter just overflowed Toyo Abe
2006-09-20 21:28 ` Willy Tarreau [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=20060920212815.GA9397@1wt.eu \
--to=w@1wt.eu \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=toyoa@mvista.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.