[PATCH] hpet-RTC: cache the comparator register
authorClemens Ladisch <clemens@ladisch.de>
Sun, 30 Oct 2005 23:03:36 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:30 +0000 (17:37 -0800)
commit7811fb8f400a3dbfa027d86bb583a31c66fddfc3
tree2df816ff6559a0e2f9d7537e1accdfe932e027d4
parent5f819949ee4e5a06c2e0054cbb42f3f0d170d779
[PATCH] hpet-RTC: cache the comparator register

Reads from an HPET register require a round trip to the south bridge and are
almost as slow as PCI reads.  By caching the last value we've written to the
comparator register, we can eliminate all HPET reads from the fast path in the
emulated RTC interrupt handler.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Acked-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/time_hpet.c
arch/x86_64/kernel/time.c