]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] x86-64: Avoid overflows during apic timer calibration
authorDavid P. Reed <dpreed@reed.com>
Wed, 2 May 2007 17:27:20 +0000 (19:27 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Wed, 2 May 2007 17:27:20 +0000 (19:27 +0200)
commit4637a74cf2ac3a3696d385c8624d84de789d1bbe
tree358cd844b60771697d8cff6b85c5ab7db4b96deb
parent9d016dd43b8df0228f1022f483f582eeb52d256e
[PATCH] x86-64: Avoid overflows during apic timer calibration

- Use 64bit TSC calculations to avoid handling overflow
- Use 32bit unsigned arithmetic for the APIC timer. This
way overflows are handled correctly.
- Fix exit check of loop to account for apic timer counting down

Signed-off-by: dpreed@reed.com
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/apic.c