/* We can make the NVIC behave in the way that Linux expects by making our "acknowledge" routine disable the interrupt, then mark it as complete.  */
static void nvic_ack_irq(unsigned int irq)
/* We can make the NVIC behave in the way that Linux expects by making our "acknowledge" routine disable the interrupt, then mark it as complete.  */
static void nvic_ack_irq(unsigned int irq)
{
	u32 mask = 1 << (irq % 32);
	spin_lock(&irq_controller_lock);
	writel(mask, NVIC_CLEAR_ENABLE + irq / 32 * 4);
	spin_unlock(&irq_controller_lock);
}