xen/arm: Disable timers and release their interrupts on CPU hot-unplug
authorMirela Simonovic <mirela.simonovic@aggios.com>
Fri, 1 Jun 2018 13:17:48 +0000 (15:17 +0200)
committerJulien Grall <julien.grall@arm.com>
Tue, 5 Jun 2018 18:08:05 +0000 (19:08 +0100)
commit711212eae012a61023088b1d6ac5b58d4b0726bd
tree1c4dc9439666af153b8b7e51cb32d6e8b5d99f4a
parentfd0f38ddd1af32b04241e5b5539d867fcd7d458d
xen/arm: Disable timers and release their interrupts on CPU hot-unplug

When a CPU is hot-unplugged we need to disable timers and release
their interrupts in order to free the memory that was allocated when
interrupts were requested (using request_irq()). The request_irq()
is called for each timer interrupt when the CPU gets hotplugged
(start_secondary->init_timer_interrupt->request_irq).
With this patch timers will be disabled and interrupts will be
released when the newly added callback receives CPU_DYING event.

Signed-off-by: Mirela Simonovic <mirela.simonovic@aggios.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/time.c