]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: fix reported IRQ rate for when HPET is enabled
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 11 Jul 2008 18:40:03 +0000 (18:40 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Jul 2008 16:14:08 +0000 (09:14 -0700)
commit0e8c03ccf3066ac4768936df5adf23c9ce340784
tree4a1b3ce75299aca020dd207b898523fc617d944f
parent46c88e2962809828a5105478f2a51d2ad10499d8
rtc: fix reported IRQ rate for when HPET is enabled

commit 61ca9daa2ca3022dc9cb22bd98e69c1b61e412ad upstream

The IRQ rate reported back by the RTC is incorrect when HPET is enabled.

Newer hardware that has HPET to emulate the legacy RTC device gets this value
wrong since after it sets the rate, it returns before setting the variable
used to report the IRQ rate back to users of the device -- so the set rate and
the reported rate get out of sync.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: David Brownell <david-b@pacbell.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/rtc.c