summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc/spapr_irq.h
diff options
context:
space:
mode:
authorDavid Gibson2019-09-24 16:12:21 +0200
committerDavid Gibson2019-10-04 11:08:23 +0200
commitf233cee97bfbab24517171ef5a56d8a54d8a96ef (patch)
treeeed49e105517d87fae442db8f41bcd2127542dd8 /include/hw/ppc/spapr_irq.h
parentspapr: Remove unhelpful tracepoints from spapr_irq_free_xics() (diff)
downloadqemu-f233cee97bfbab24517171ef5a56d8a54d8a96ef.tar.gz
qemu-f233cee97bfbab24517171ef5a56d8a54d8a96ef.tar.xz
qemu-f233cee97bfbab24517171ef5a56d8a54d8a96ef.zip
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>
Diffstat (limited to 'include/hw/ppc/spapr_irq.h')
-rw-r--r--include/hw/ppc/spapr_irq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/ppc/spapr_irq.h b/include/hw/ppc/spapr_irq.h
index 9b60378e28..ed88b4599a 100644
--- a/include/hw/ppc/spapr_irq.h
+++ b/include/hw/ppc/spapr_irq.h
@@ -43,7 +43,7 @@ typedef struct SpaprIrq {
void (*init)(SpaprMachineState *spapr, Error **errp);
int (*claim)(SpaprMachineState *spapr, int irq, bool lsi, Error **errp);
- void (*free)(SpaprMachineState *spapr, int irq, int num);
+ void (*free)(SpaprMachineState *spapr, int irq);
void (*print_info)(SpaprMachineState *spapr, Monitor *mon);
void (*dt_populate)(SpaprMachineState *spapr, uint32_t nr_servers,
void *fdt, uint32_t phandle);