projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e428c6a
)
RTC: Include information about UIE and PIE in RTC driver proc.
author
Marcelo Roberto Jimenez
<mroberto@cpti.cetuc.puc-rio.br>
Fri, 11 Feb 2011 13:50:24 +0000
(11:50 -0200)
committer
John Stultz
<john.stultz@linaro.org>
Wed, 9 Mar 2011 19:25:04 +0000
(11:25 -0800)
Generic RTC code is always able to provide the necessary information
about update and periodic interrupts. This patch add such information to
the proc interface.
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Alessandro Zummo <a.zummo@towertech.it>
CC: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
CC: rtc-linux@googlegroups.com
Signed-off-by: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/rtc/rtc-proc.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-proc.c
b/drivers/rtc/rtc-proc.c
index 242bbf86c74a7bbfa9f9e5c8748c41c047a6b1ff..0a59fda5c09d176c5fa0af1f90625c04a29232c4 100644
(file)
--- a/
drivers/rtc/rtc-proc.c
+++ b/
drivers/rtc/rtc-proc.c
@@
-69,6
+69,14
@@
static int rtc_proc_show(struct seq_file *seq, void *offset)
alrm.enabled ? "yes" : "no");
seq_printf(seq, "alrm_pending\t: %s\n",
alrm.pending ? "yes" : "no");
+ seq_printf(seq, "update IRQ enabled\t: %s\n",
+ (rtc->uie_rtctimer.enabled) ? "yes" : "no");
+ seq_printf(seq, "periodic IRQ enabled\t: %s\n",
+ (rtc->pie_enabled) ? "yes" : "no");
+ seq_printf(seq, "periodic IRQ frequency\t: %d\n",
+ rtc->irq_freq);
+ seq_printf(seq, "max user IRQ frequency\t: %d\n",
+ rtc->max_user_freq);
}
seq_printf(seq, "24hr\t\t: yes\n");