git: 2bb16c635249 - main - x86: retire use of intr_bind
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Aug 2023 21:02:42 UTC
The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2bb16c6352494bf7aba92be700908ddf01e0c08b commit 2bb16c6352494bf7aba92be700908ddf01e0c08b Author: Elliott Mitchell <ehem+freebsd@m5p.com> AuthorDate: 2022-10-07 03:23:34 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2023-08-03 21:01:18 +0000 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 --- sys/x86/x86/nexus.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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