From: Paul Gortmaker Date: Fri, 11 Jul 2008 00:30:48 +0000 (-0700) Subject: rtc: fix reported IRQ rate for when HPET is enabled X-Git-Tag: v2.6.26~21 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=61ca9daa2ca3022dc9cb22bd98e69c1b61e412ad;p=linux-2.6-omap-h63xx.git 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 Cc: Ingo Molnar Cc: David Brownell Cc: Thomas Gleixner Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/rtc.c b/drivers/char/rtc.c index 5f80a9dff57..909cac93fa2 100644 --- a/drivers/char/rtc.c +++ b/drivers/char/rtc.c @@ -678,12 +678,13 @@ static int rtc_do_ioctl(unsigned int cmd, unsigned long arg, int kernel) if (arg != (1<