Index | Thread | Search

From:
Jonathan Gray <jsg@jsg.id.au>
Subject:
remove agintc_d_wait_rwp() and agintc_r_wait_rwp()
To:
tech@openbsd.org
Date:
Sat, 6 Jul 2024 17:41:36 +1000

Download raw body.

Thread
  • Jonathan Gray:

    remove agintc_d_wait_rwp() and agintc_r_wait_rwp()

remove agintc_d_wait_rwp() and agintc_r_wait_rwp(), unused

diff --git sys/arch/arm64/dev/agintc.c sys/arch/arm64/dev/agintc.c
index 3ffd0477423..3ec5ce65619 100644
--- sys/arch/arm64/dev/agintc.c
+++ sys/arch/arm64/dev/agintc.c
@@ -255,7 +255,6 @@ void		agintc_route(struct agintc_softc *, int, int,
 		    struct cpu_info *);
 void		agintc_route_irq(void *, int, struct cpu_info *);
 void		agintc_intr_barrier(void *);
-void		agintc_r_wait_rwp(struct agintc_softc *sc);
 
 int		agintc_ipi_ddb(void *v);
 int		agintc_ipi_halt(void *v);
@@ -1379,37 +1378,6 @@ agintc_eoi(uint32_t eoi)
 	__isb();
 }
 
-void
-agintc_d_wait_rwp(struct agintc_softc *sc)
-{
-	int count = 100000;
-	uint32_t v;
-
-	do {
-		v = bus_space_read_4(sc->sc_iot, sc->sc_d_ioh, GICD_CTLR);
-	} while (--count && (v & GICD_CTLR_RWP));
-
-	if (count == 0)
-		panic("%s: RWP timed out 0x08%x", __func__, v);
-}
-
-void
-agintc_r_wait_rwp(struct agintc_softc *sc)
-{
-	struct cpu_info *ci = curcpu();
-	int hwcpu = sc->sc_cpuremap[ci->ci_cpuid];
-	int count = 100000;
-	uint32_t v;
-
-	do {
-		v = bus_space_read_4(sc->sc_iot, sc->sc_r_ioh[hwcpu],
-		    GICR_CTLR);
-	} while (--count && (v & GICR_CTLR_RWP));
-
-	if (count == 0)
-		panic("%s: RWP timed out 0x08%x", __func__, v);
-}
-
 #ifdef MULTIPROCESSOR
 int
 agintc_ipi_ddb(void *v)