]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r346312:
authorIan Lepore <ian@FreeBSD.org>
Sun, 21 Apr 2019 20:55:33 +0000 (20:55 +0000)
committerIan Lepore <ian@FreeBSD.org>
Sun, 21 Apr 2019 20:55:33 +0000 (20:55 +0000)
commit49daf976fd78c33441a1365ec4ff5cd7dc9ac477
treeb3dc5e7f03da0cc3ba6f90bdec016a3d1709b9d8
parent244efa1fcf09376d1ffb344d293f750cf5d167a4
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