[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v3 5/9] xics: Remove obsolete xics_set_irq_type()
From: |
Alexey Kardashevskiy |
Subject: |
[Qemu-ppc] [PATCH v3 5/9] xics: Remove obsolete xics_set_irq_type() |
Date: |
Fri, 30 May 2014 19:34:16 +1000 |
This removes xics_set_irq_type() as it is not used anymore.
This is done by a separate patch to make the previous patch
look nicer.
Signed-off-by: Alexey Kardashevskiy <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 58561af..0dfd173 100644
--- a/hw/intc/xics.c
+++ b/hw/intc/xics.c
@@ -679,17 +679,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 8e13488..0d8af1b 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -157,7 +157,6 @@ struct ICSIRQState {
};
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);
int xics_alloc_block(XICSState *icp, int src, int num, bool lsi, bool align);
--
2.0.0
- [Qemu-ppc] [PATCH v3 0/9] Move interrupts from spapr to xics, Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 4/9] spapr: Move interrupt allocator to xics, Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 8/9] vmstate: Add preallocation for migrating arrays (VMS_ALLOC flag), Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 2/9] xics: Add xics_find_source(), Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 1/9] xics: Add flags for interrupts, Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 6/9] spapr: Remove @next_irq, Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 7/9] xics: Implement xics_ics_free(), Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 5/9] xics: Remove obsolete xics_set_irq_type(),
Alexey Kardashevskiy <=
- [Qemu-ppc] [PATCH v3 9/9] spapr_pci: Use XICS interrupt allocator and do not cache interrupts in PHB, Alexey Kardashevskiy, 2014/05/30
- [Qemu-ppc] [PATCH v3 3/9] xics: Disable flags reset on xics reset, Alexey Kardashevskiy, 2014/05/30