]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r346312:
authorian <ian@FreeBSD.org>
Mon, 22 Apr 2019 15:23:06 +0000 (15:23 +0000)
committerian <ian@FreeBSD.org>
Mon, 22 Apr 2019 15:23:06 +0000 (15:23 +0000)
commit4eaaf9b7f0d55be4d243b932a1a21f840f3b786a
treeae58b580d03c68671add19c7cfaea1582841535a
parent447c293e3273ecd18ddcf0b1b7c06025f6e1d4ee
MFC r346312:

Only set up the interrupts that will actually be used in arm generic_timer.

The code previously set up interrupt handlers for all the interrupt
resources available, including for timers that are not in use.  That could
lead to interrupt storms.  For example, if boot firmware enabled the virtual
timer but the kernel is using the physical timer, it could get flooded with
interrupts on the virtual timer which it cannot shut off.  By only setting
up an interrupt handler for the hardware that will actually be used, any
interrupts from other timer units will remain masked in the interrupt
controller.

Differential Revision: https://reviews.freebsd.org/D19871
sys/arm/arm/generic_timer.c