aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Mitchell <ehem+freebsd@m5p.com>2022-10-07 03:23:34 +0000
committerEd Maste <emaste@FreeBSD.org>2023-08-03 21:01:18 +0000
commit2bb16c6352494bf7aba92be700908ddf01e0c08b (patch)
treef7feb7b812f527a2ce5f463c0685e8013ac3afdc
parent61a8231d152c38ac96b697ea3ca8ff220f3aa536 (diff)
downloadsrc-2bb16c6352494bf7aba92be700908ddf01e0c08b.tar.gz
src-2bb16c6352494bf7aba92be700908ddf01e0c08b.zip
x86: retire use of intr_bind
`intr_bind(u_int vector, u_char cpu);` looked suspicious since everywhere else "cpu" is a u_int and >256 processors isn't unreasonable now. Reviewed by: mjg Differential Revision: https://reviews.freebsd.org/D36901
-rw-r--r--sys/x86/x86/nexus.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/x86/x86/nexus.c b/sys/x86/x86/nexus.c
index 332b1527efbd..b57bda82453c 100644
--- a/sys/x86/x86/nexus.c
+++ b/sys/x86/x86/nexus.c
@@ -615,7 +615,12 @@ nexus_resume_intr(device_t dev, device_t child, struct resource *irq)
static int
nexus_bind_intr(device_t dev, device_t child, struct resource *irq, int cpu)
{
- return (intr_bind(rman_get_start(irq), cpu));
+ struct intsrc *isrc;
+
+ isrc = intr_lookup_source(rman_get_start(irq));
+ if (isrc == NULL)
+ return (EINVAL);
+ return (intr_event_bind(isrc->is_event, cpu));
}
#endif