]> git.baikalelectronics.ru Git - kernel.git/commit
arm_pmu: explicitly enable/disable SPIs at hotplug
authorMark Rutland <mark.rutland@arm.com>
Mon, 5 Feb 2018 16:42:00 +0000 (16:42 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 20 Feb 2018 11:34:54 +0000 (11:34 +0000)
commit2d21db600e0b0429a0db8bf62f4c0cb705a3f7b7
tree7a8301e69ef2f8f7cae3de8316056b4679c28019
parent246dea142e0bf7d4e3578238f3969afb2d615faa
arm_pmu: explicitly enable/disable SPIs at hotplug

To support ACPI systems, we need to request IRQs before CPUs are
hotplugged, and thus we need to request IRQs before we know their
associated PMU.

This is problematic if a PMU IRQ is pending out of reset, as it may be
taken before we know the PMU, and thus the IRQ handler won't be able to
handle it, leaving it screaming.

To avoid such problems, lets request all IRQs in a disabled state, and
explicitly enable/disable them at hotplug time, when we're sure the PMU
has been probed.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/perf/arm_pmu.c