[AVR32] Implement intc_get_pending()
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 8 Dec 2006 10:04:19 +0000 (11:04 +0100)
committerHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 8 Dec 2006 12:08:10 +0000 (13:08 +0100)
intc_get_pending() returns a bitmask with pending interrupts in a
interrupt controller group (irq). This is used by the upcoming
oprofile implementation for avr32 and may also be useful for chained
interrupt controller drivers.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mach-at32ap/intc.c

index eb87a18ad7b2f70c6a49a7595efeca4ac23706b1..dd5c009cf224838379af65d498c35ed7357afcf2 100644 (file)
@@ -136,3 +136,7 @@ fail:
        panic("Interrupt controller initialization failed!\n");
 }
 
+unsigned long intc_get_pending(int group)
+{
+       return intc_readl(&intc0, INTREQ0 + 4 * group);
+}