]> git.proxmox.com Git - mirror_qemu.git/commit - hw/openpic.c
openpic: Accelerate pending irq search
authorAlexander Graf <agraf@suse.de>
Thu, 13 Dec 2012 11:48:14 +0000 (12:48 +0100)
committerAlexander Graf <agraf@suse.de>
Fri, 14 Dec 2012 12:12:57 +0000 (13:12 +0100)
commit76aec1f8b6549d14576a3eb739c731df8f678ffb
tree814c024c6aeb43905525d8bbf1ed9ab39241bf4b
parentdbe30e13e87a71e85e88ae3ffd3460173cbc8193
openpic: Accelerate pending irq search

When we're done with one interrupt, we need to search for the next pending
interrupt in the queue. This search has grown quite big now that we have
more than 256 possible irq lines.

So let's memorize how many interrupts we have pending in our bitmaps, so
that we can always bail out in the usual case - the one where we're all done.

Signed-off-by: Alexander Graf <agraf@suse.de>
hw/openpic.c