openpic: always call IRQ_check from IRQ_get_next
authorScott Wood <scottwood@freescale.com>
Fri, 21 Dec 2012 16:15:46 +0000 (16:15 +0000)
committerAlexander Graf <agraf@suse.de>
Mon, 7 Jan 2013 16:37:10 +0000 (17:37 +0100)
commit3c94378e2c500b6211e95d7457f4a9959955c3d1
treeff25ac6ecc0c9e3771b06f60e4d1a8fca5dd73c3
parent72c1da2ca72af50e6536d0cd9c6db758f66cd7c2
openpic: always call IRQ_check from IRQ_get_next

Previously the code relied on the queue's "next" field getting
set to -1 sometime between an update to the bitmap, and the next
call to IRQ_get_next.  Sometimes this happened after the update.
Sometimes it happened before the check.  Sometimes it didn't happen
at all.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/openpic.c