[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 2/4] ppc/xics: Remove unused xics_set_irq_type()
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 2/4] ppc/xics: Remove unused xics_set_irq_type() |
Date: |
Mon, 27 Jun 2016 15:29:30 +1000 |
From: Benjamin Herrenschmidt <address@hidden>
Signed-off-by: Benjamin Herrenschmidt <address@hidden>
Reviewed-by: David Gibson <address@hidden>
Signed-off-by: Nikunj A Dadhania <address@hidden>
[dwg: Adjusted for context to apply without original series]
Signed-off-by: David Gibson <address@hidden>
---
hw/intc/xics.c | 11 -----------
include/hw/ppc/xics.h | 1 -
2 files changed, 12 deletions(-)
diff --git a/hw/intc/xics.c b/hw/intc/xics.c
index cce7f3d..2e83d41 100644
--- a/hw/intc/xics.c
+++ b/hw/intc/xics.c
@@ -694,17 +694,6 @@ static void ics_set_irq_type(ICSState *ics, int srcno,
bool lsi)
lsi ? XICS_FLAGS_IRQ_LSI : XICS_FLAGS_IRQ_MSI;
}
-void xics_set_irq_type(XICSState *icp, int irq, bool lsi)
-{
- int src = xics_find_source(icp, irq);
- ICSState *ics;
-
- assert(src >= 0);
-
- ics = &icp->ics[src];
- ics_set_irq_type(ics, irq - ics->offset, lsi);
-}
-
#define ICS_IRQ_FREE(ics, srcno) \
(!((ics)->irqs[(srcno)].flags & (XICS_FLAGS_IRQ_MASK)))
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 9091054..6925677 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -160,7 +160,6 @@ struct ICSIRQState {
#define XICS_IRQS 1024
qemu_irq xics_get_qirq(XICSState *icp, int irq);
-void xics_set_irq_type(XICSState *icp, int irq, bool lsi);
int xics_alloc(XICSState *icp, int src, int irq_hint, bool lsi, Error **errp);
int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align,
Error **errp);
--
2.5.5
- [Qemu-ppc] [PULL 0/4] ppc-for-2.7 queue 20160627, David Gibson, 2016/06/27
- [Qemu-ppc] [PULL 3/4] qapi: Report support for -device cpu hotplug in query-machines, David Gibson, 2016/06/27
- [Qemu-ppc] [PULL 1/4] target-ppc: ppce500_spin.c uses SPR_PIR, should use SPR_BOOKE_PIR, David Gibson, 2016/06/27
- [Qemu-ppc] [PULL 2/4] ppc/xics: Remove unused xics_set_irq_type(),
David Gibson <=
- [Qemu-ppc] [PULL 4/4] qapi: keep names in 'CpuInstanceProperties' in sync with struct CPUCore, David Gibson, 2016/06/27
- Re: [Qemu-ppc] [PULL 0/4] ppc-for-2.7 queue 20160627, Peter Maydell, 2016/06/27