rtc: Limit RTC PIE frequency
authorThomas Gleixner <tglx@linutronix.de>
Fri, 22 Jul 2011 09:12:51 +0000 (09:12 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 26 Jul 2011 21:50:01 +0000 (14:50 -0700)
commit6e7a333eaa522ef73be01caec7a01521490aaf00
tree76e9ffac58da9bc22327a38ea5e40fc5aa18c530
parent3c8bb90efb6e3105206e4aaa9127395feeda5492
rtc: Limit RTC PIE frequency

The RTC pie hrtimer is self rearming. We really need to limit the
frequency to something sensible. Thus limit it to the 8192Hz max
value from the rtc man documentation

Cc: Willy Tarreau <w@1wt.eu>
Cc: stable@kernel.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[jstultz: slightly reworked to use RTC_MAX_FREQ value]
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/rtc/interface.c
include/linux/rtc.h