diff options
author | David Gibson | 2019-09-23 07:50:09 +0200 |
---|---|---|
committer | David Gibson | 2019-10-04 11:08:22 +0200 |
commit | 7678b74a94a70186da3b3971d7ae92ca1a81c969 (patch) | |
tree | 34d59d07fb27aaad26e27c85eee043a32c6c64bd /hw/ppc/spapr_vio.c | |
parent | spapr: Fold spapr_phb_lsi_qirq() into its single caller (diff) | |
download | qemu-7678b74a94a70186da3b3971d7ae92ca1a81c969.tar.gz qemu-7678b74a94a70186da3b3971d7ae92ca1a81c969.tar.xz qemu-7678b74a94a70186da3b3971d7ae92ca1a81c969.zip |
spapr: Replace spapr_vio_qirq() helper with spapr_vio_irq_pulse() helper
Every caller of spapr_vio_qirq() immediately calls qemu_irq_pulse() with
the result, so we might as well just fold that into the helper.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/ppc/spapr_vio.c')
-rw-r--r-- | hw/ppc/spapr_vio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c index 0803649658..554de9930d 100644 --- a/hw/ppc/spapr_vio.c +++ b/hw/ppc/spapr_vio.c @@ -23,7 +23,6 @@ #include "qemu/error-report.h" #include "qapi/error.h" #include "qapi/visitor.h" -#include "hw/irq.h" #include "qemu/log.h" #include "hw/loader.h" #include "elf.h" @@ -294,7 +293,7 @@ int spapr_vio_send_crq(SpaprVioDevice *dev, uint8_t *crq) dev->crq.qnext = (dev->crq.qnext + 16) % dev->crq.qsize; if (dev->signal_state & 1) { - qemu_irq_pulse(spapr_vio_qirq(dev)); + spapr_vio_irq_pulse(dev); } return 0; |