]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Simplify the flow when getting/setting an isrc
authorandrew <andrew@FreeBSD.org>
Wed, 1 Jul 2020 12:07:28 +0000 (12:07 +0000)
committerandrew <andrew@FreeBSD.org>
Wed, 1 Jul 2020 12:07:28 +0000 (12:07 +0000)
commit8cdde284c0dbc89978011c7493285b5248c0ffbe
treef4526ae3d80c95468377dcb4f8c6b7cb1e28dbb6
parent967382a845cf780b5c0ef0535a40e4193e8b66bb
Simplify the flow when getting/setting an isrc

Rather than unlocking and returning we can just perform the needed action
only when the interrupt source is valid and reuse the unlock in both the
valid irq and invalid irq cases.

Sponsored by: Innovate UK
sys/kern/subr_intr.c