2.4.36-stable kernel tree
リビジョン | 6a303c34761769ba753db4a9bb61ceab7bb0ca43 (tree) |
---|---|
日時 | 2006-09-29 06:21:50 |
作者 | Toyo Abe <toyoa@mvis...> |
コミッター | Willy Tarreau |
[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.
Signed-off-by: Toyo Abe <toyoa@mvista.com>
@@ -19,7 +19,7 @@ | ||
19 | 19 | |
20 | 20 | void __delay(unsigned long loops) |
21 | 21 | { |
22 | - unsigned long bclock, now; | |
22 | + unsigned bclock, now; | |
23 | 23 | |
24 | 24 | rdtscl(bclock); |
25 | 25 | do |