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:
parent
61a8231d15
commit
2bb16c6352
@ -615,7 +615,12 @@ nexus_resume_intr(device_t dev, device_t child, struct resource *irq)
|
|||||||
static int
|
static int
|
||||||
nexus_bind_intr(device_t dev, device_t child, struct resource *irq, int cpu)
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user