]> err.no Git - linux-2.6/commit
[PATCH] hpet-RTC: fix timer config register accesses
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:29 +0000 (17:37 -0800)
commit5f819949ee4e5a06c2e0054cbb42f3f0d170d779
tree85dfb0366a13b3e0ae073b5838ec8d457fd89518
parentf00c96f313b07d2eb2845305b9a3395e14385767
[PATCH] hpet-RTC: fix timer config register accesses

Make sure that the RTC timer is in non-periodic mode; some stupid BIOS might
have initialized it to periodic mode.

Furthermore, don't set the SETVAL bit in the config register.  This wouldn't
have any effect unless the timer was in period mode (which it isn't), and then
the actual timer frequency would be half that of the desired one because
incrementing the comparator in the interrupt handler would be done after the
hardware has already incremented it itself.

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