spapr: Handle freeing of multiple irqs in frontend only
commitf233cee97bfbab24517171ef5a56d8a54d8a96ef
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 24 Sep 2019 14:12:21 +0000 (25 00:12 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 4 Oct 2019 09:08:23 +0000 (4 19:08 +1000)
treeeed49e105517d87fae442db8f41bcd2127542dd8
parent85d0425652a5117164d716a284df5aa22ddf44fe
spapr: Handle freeing of multiple irqs in frontend only

spapr_irq_free() can be used to free multiple irqs at once. That's useful
for its callers, but there's no need to make the individual backend hooks
handle this.  We can loop across the irqs in spapr_irq_free() itself and
have the hooks just do one at time.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
hw/ppc/spapr_irq.c
include/hw/ppc/spapr_irq.h