public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH for 2.4] x86_64: Fix missing delay when the TSC counter just overflowed
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Willy Tarreau @ 2006-09-20 21:28 UTC (permalink / raw)
  To: Toyo Abe; +Cc: Andi Kleen, linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH for 2.4] x86_64: Fix missing delay when the TSC counter just overflowed
@ 2006-09-20 21:43 Toyo Abe
  2006-09-20 21:28 ` Willy Tarreau
  0 siblings, 1 reply; 2+ messages in thread
From: Toyo Abe @ 2006-09-20 21:43 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: Andi Kleen, linux-kernel

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-20 21:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox