]> 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)
commit2c3e14396676bd37ad0af222990127d73b14b3fc
tree7a8301e69ef2f8f7cae3de8316056b4679c28019
parentc197d12ddef94c42e496ca72c5784aa9d243f70c
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