提交 69562118 编写于 作者: H Haavard Skinnemoen

[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: NHaavard Skinnemoen <hskinnemoen@atmel.com>
上级 acc9252a
......@@ -136,3 +136,7 @@ void __init init_IRQ(void)
panic("Interrupt controller initialization failed!\n");
}
unsigned long intc_get_pending(int group)
{
return intc_readl(&intc0, INTREQ0 + 4 * group);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册