]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: fix reported IRQ rate for when HPET is enabled
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 11 Jul 2008 00:30:48 +0000 (17:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Jul 2008 01:04:43 +0000 (18:04 -0700)
commit469f07726c4131f811f4a190ba5085250bceaf93
tree3f89080946e9ab1fa01f81b3189c32432154c475
parent0d03a83c4d776012cc033c0b5fa88e801a05d9ac
rtc: fix reported IRQ rate for when HPET is enabled

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/rtc.c