Skip to content

Commit

Permalink
intrng: Store the IPI priority
Browse files Browse the repository at this point in the history
When registering an interrupt controller we take a priority to compare.
We never store the priority so any later calls may act incorrectly.

Store the priority so later calls act as expected.

Reviewed by:	jrtc27
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D47235
  • Loading branch information
zxombie committed Oct 23, 2024
1 parent 92c2360 commit f124139
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/kern/subr_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1863,8 +1863,10 @@ intr_ipi_pic_register(device_t dev, u_int priority)
return (EBUSY);
}

if (intr_ipi_dev == NULL || priority > intr_ipi_dev_priority)
if (intr_ipi_dev == NULL || priority > intr_ipi_dev_priority) {
intr_ipi_dev_priority = priority;
intr_ipi_dev = dev;
}

return (0);
}
Expand Down

0 comments on commit f124139

Please sign in to comment.