[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v1 04/11] ppc/xics: Remove unused xics_set_irq_type()
From: |
Nikunj A Dadhania |
Subject: |
[Qemu-ppc] [PATCH v1 04/11] ppc/xics: Remove unused xics_set_irq_type() |
Date: |
Thu, 23 Jun 2016 23:17:23 +0530 |
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>
---
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 40969ee..4f15a2d 100644
--- a/hw/intc/xics.c
+++ b/hw/intc/xics.c
@@ -695,17 +695,6 @@ 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);
-}
-
static void xics_register_types(void)
{
type_register_static(&xics_common_info);
diff --git a/include/hw/ppc/xics.h b/include/hw/ppc/xics.h
index 32ea706..2a9b91d 100644
--- a/include/hw/ppc/xics.h
+++ b/include/hw/ppc/xics.h
@@ -170,7 +170,6 @@ struct ICSIRQState {
#define XICS_IRQS_SPAPR 1024
qemu_irq xics_get_qirq(XICSState *icp, int irq);
-void xics_set_irq_type(XICSState *icp, int irq, bool lsi);
int xics_spapr_alloc(XICSState *icp, int src, int irq_hint, bool lsi,
Error **errp);
int xics_spapr_alloc_block(XICSState *icp, int src, int num, bool lsi,
--
2.7.4
- [Qemu-ppc] [PATCH v1 00/11] sPAPR xics rework/cleanup, Nikunj A Dadhania, 2016/06/23
- [Qemu-ppc] [PATCH v1 03/11] ppc/xics: Implement H_IPOLL using an accessor, Nikunj A Dadhania, 2016/06/23
- [Qemu-ppc] [PATCH v1 04/11] ppc/xics: Remove unused xics_set_irq_type(),
Nikunj A Dadhania <=
- [Qemu-ppc] [PATCH v1 05/11] ppc/xics: Replace "icp" with "xics" in most places, Nikunj A Dadhania, 2016/06/23
- [Qemu-ppc] [PATCH v1 06/11] ppc/xics: Make the ICSState a list, Nikunj A Dadhania, 2016/06/23
- Re: [Qemu-ppc] [PATCH v1 06/11] ppc/xics: Make the ICSState a list, Nikunj A Dadhania, 2016/06/27
[Qemu-ppc] [PATCH v1 07/11] ppc/xics: An ICS with offset 0 is assumed to be uninitialized, Nikunj A Dadhania, 2016/06/23