x86: HPET: read back compare register before reading counter
authorThomas Gleixner <tglx@linutronix.de>
Sat, 6 Sep 2008 01:06:08 +0000 (03:06 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Oct 2008 03:23:05 +0000 (20:23 -0700)
commit9c57bca1856eae14e62d363a35cb161edfa134e9
treec07ce7db63956ecb3df60f5a1b3652fa9dc1d864
parent45f9d5228563175bf2e340e1863f3c936a7d5888
x86: HPET: read back compare register before reading counter

commit 72d43d9bc9210d24d09202eaf219eac09e17b339 upstream

After fixing the u32 thinko I sill had occasional hickups on ATI chipsets
with small deltas. There seems to be a delay between writing the compare
register and the transffer to the internal register which triggers the
interrupt. Reading back the value makes sure, that it hit the internal
match register befor we compare against the counter value.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/hpet.c