aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rtc.h
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2011-07-22 09:12:51 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-10-03 11:40:08 -0700
commit1ed2053563d4d0bf70864a9df53c7a5dce7724e9 (patch)
treee6ab98a2249cc9015a48deb25d0255837de25f58 /include/linux/rtc.h
parentc3a44b4d23f4cb1b3eafb8c2c74d88f452d50a6d (diff)
downloadkernel_samsung_smdk4412-1ed2053563d4d0bf70864a9df53c7a5dce7724e9.zip
kernel_samsung_smdk4412-1ed2053563d4d0bf70864a9df53c7a5dce7724e9.tar.gz
kernel_samsung_smdk4412-1ed2053563d4d0bf70864a9df53c7a5dce7724e9.tar.bz2
rtc: Fix RTC PIE frequency limit
commit 938f97bcf1bdd1b681d5d14d1d7117a2e22d4434 upstream. Thomas earlier submitted a fix to limit the RTC PIE freq, but picked 5000Hz out of the air. Willy noticed that we should instead use the 8192Hz max from the rtc man documentation. Cc: Willy Tarreau <w@1wt.eu> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/rtc.h')
-rw-r--r--include/linux/rtc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index b27ebea..93f4d03 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -97,6 +97,9 @@ struct rtc_pll_info {
#define RTC_AF 0x20 /* Alarm interrupt */
#define RTC_UF 0x10 /* Update interrupt for 1Hz RTC */
+
+#define RTC_MAX_FREQ 8192
+
#ifdef __KERNEL__
#include <linux/types.h>