Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

RTC: Include information about UIE and PIE in RTC driver proc.

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>

authored by

Marcelo Roberto Jimenez and committed by
John Stultz
bca8521c e428c6a2

+8
+8
drivers/rtc/rtc-proc.c
··· 69 69 alrm.enabled ? "yes" : "no"); 70 70 seq_printf(seq, "alrm_pending\t: %s\n", 71 71 alrm.pending ? "yes" : "no"); 72 + seq_printf(seq, "update IRQ enabled\t: %s\n", 73 + (rtc->uie_rtctimer.enabled) ? "yes" : "no"); 74 + seq_printf(seq, "periodic IRQ enabled\t: %s\n", 75 + (rtc->pie_enabled) ? "yes" : "no"); 76 + seq_printf(seq, "periodic IRQ frequency\t: %d\n", 77 + rtc->irq_freq); 78 + seq_printf(seq, "max user IRQ frequency\t: %d\n", 79 + rtc->max_user_freq); 72 80 } 73 81 74 82 seq_printf(seq, "24hr\t\t: yes\n");