OSDN Git Service

[PATCH] x86_64: Fix missing delay when the TSC counter just overflowed
authorToyo Abe <toyoa@mvista.com>
Wed, 20 Sep 2006 21:43:54 +0000 (14:43 -0700)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 Sep 2006 21:21:50 +0000 (23:21 +0200)
commit6a303c34761769ba753db4a9bb61ceab7bb0ca43
treeeaf176aac8a1dbec2625fdd19cf7d2a7da0f1db8
parentd4a1380db55cbf262bcc24b448b5061fab65113d
[PATCH] x86_64: Fix missing delay when the TSC counter just overflowed

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