diff options
author | David Gibson | 2019-09-24 16:12:21 +0200 |
---|---|---|
committer | David Gibson | 2019-10-04 11:08:23 +0200 |
commit | f233cee97bfbab24517171ef5a56d8a54d8a96ef (patch) | |
tree | eed49e105517d87fae442db8f41bcd2127542dd8 /include/hw/ppc/spapr_irq.h | |
parent | spapr: Remove unhelpful tracepoints from spapr_irq_free_xics() (diff) | |
download | qemu-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.h | 2 |
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); |