forked from Minki/linux
[AVR32] Implement intc_get_pending()
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>
This commit is contained in:
parent
acc9252a36
commit
695621183e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user