Thread (4 messages) 4 messages, 4 authors, 2011-11-03

[PATCHv2 02/10] ARM: vic: MULTI_IRQ_HANDLER handler

From: Nicolas Pitre <hidden>
Date: 2011-11-03 13:49:55
Also in: linux-devicetree

On Thu, 3 Nov 2011, Russell King - ARM Linux wrote:
	stat = readl_relaxed(vic->base + VIC_IRQ_STATUS);
	while (stat) {
		while (stat) {
			irq = ffs(stat) - 1;
			stat &= ~(1 << irq);
			handle_irq(irq);
		}
		stat = readl_relaxed(vic->base + VIC_IRQ_STATUS);
	}
The inner loop could be a do { } while() construct to avoid evaluating 
stat twice on each outer loop itteration.  Maybe gcc is smart enough to 
notice though, maybe not.


Nicolas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help