RTC: Fix the cross interrupt issue on rtc-test.
authorMarcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
Mon, 7 Feb 2011 21:16:07 +0000 (19:16 -0200)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 9 Mar 2011 19:25:07 +0000 (11:25 -0800)
commita417493ef916b8b6d1782a589766a713c553842e
treef19875bbf0dec0bc3d07149b4ba498434edeb763
parent4cebe7aadc9ee8e7b44857b7aba3a878870cef65
RTC: Fix the cross interrupt issue on rtc-test.

The rtc-test driver is meant to provide a test/debug code for the RTC
subsystem.

The rtc-test driver simulates specific interrupts by echoing to the
sys interface. Those were the update, alarm and periodic interrupts.

As a side effect of the new implementation, any interrupt generated in
the rtc-test driver would trigger the same code path in the generic
code, and thus the distinction among interrupts gets lost.

This patch preserves the previous behaviour of the rtc-test driver,
where e.g. an update interrupt would not trigger an alarm or periodic
interrupt, and vice-versa. In real world RTC drivers, this is not an
issue, but in the rtc-test driver it may be interesting to distinguish
these interrupts for testing purposes.

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-test.c
This page took 0.027204 seconds and 5 git commands to generate.