powerpc: Move openpic_intr, since it's hidden now

Last minute change by me (diff reduction), that I didn't build.  This
was in the original commit.

Fixes:		8fb1789612 ("intr/powerpc: create openpic_class kobj")
MFC after:	2 weeks
X-MFC-with:	8fb1789612
This commit is contained in:
Justin Hibbits
2025-10-29 23:00:09 -04:00
parent 8fb1789612
commit 5e941ac54d
+11 -11
View File
@@ -280,17 +280,6 @@ openpic_config(device_t dev, u_int irq, enum intr_trigger trig,
openpic_write(sc, OPENPIC_SRC_VECTOR(irq), x);
}
static int
openpic_intr(void *arg)
{
device_t dev = (device_t)(arg);
/* XXX Cascaded PICs do not pass non-NULL trapframes! */
openpic_dispatch(dev, NULL);
return (FILTER_HANDLED);
}
static void
openpic_dispatch(device_t dev, struct trapframe *tf)
{
@@ -311,6 +300,17 @@ openpic_dispatch(device_t dev, struct trapframe *tf)
}
}
static int
openpic_intr(void *arg)
{
device_t dev = (device_t)(arg);
/* XXX Cascaded PICs do not pass non-NULL trapframes! */
openpic_dispatch(dev, NULL);
return (FILTER_HANDLED);
}
void
openpic_enable(device_t dev, u_int irq, u_int vector, void **priv __unused)
{