1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00

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
This commit is contained in:
Elliott Mitchell 2022-10-06 20:23:34 -07:00 committed by Ed Maste
parent 61a8231d15
commit 2bb16c6352

View File

@ -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