diff options
author | Boris BREZILLON <boris.brezillon@free-electrons.com> | 2015-03-02 10:18:15 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-03-04 22:11:07 +0100 |
commit | dd1f1f391dd7f3a39a3983df2ca076871111cec9 (patch) | |
tree | 2ab56a2848ff355a800d746f8c4eb50d3cd14080 /drivers/clk/at91/pmc.c | |
parent | 603b1a232604dcd19a28eaddf70eee9fbe3edc88 (diff) |
rtc: at91rm9200: rework wakeup and interrupt handling
The IRQ line used by the RTC device is usually shared with the system
timer (PIT) on at91 platforms.
Since timers are registering their handlers with IRQF_NO_SUSPEND, we
should expect being called in suspended state, and properly wake the
system up when this is the case.
Set IRQF_COND_SUSPEND flag when registering the IRQ handler to inform
irq core that it can safely be called while the system is suspended.
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/clk/at91/pmc.c')
0 files changed, 0 insertions, 0 deletions