ARM: pmu: add support for interrupt-affinity property
authorWill Deacon <will.deacon@arm.com>
Fri, 6 Mar 2015 11:54:09 +0000 (11:54 +0000)
committerWill Deacon <will.deacon@arm.com>
Tue, 24 Mar 2015 15:07:57 +0000 (15:07 +0000)
commit9fd85eb502a78bd812db58bd1f668b2a06ee30a5
tree81e8e9ea897a7ab9aa32e7bbfc56ca62423b119e
parente429817b401f095ac483fcb02524b01faf45dad6
ARM: pmu: add support for interrupt-affinity property

Historically, the PMU devicetree bindings have expected SPIs to be
listed in order of *logical* CPU number. This is problematic for
bootloaders, especially when the boot CPU (logical ID 0) isn't listed
first in the devicetree.

This patch adds a new optional property, interrupt-affinity, to the
PMU node which allows the interrupt affinity to be described using
a list of phandled to CPU nodes, with each entry in the list
corresponding to the SPI at the same index in the interrupts property.

Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/pmu.h
arch/arm/kernel/perf_event_cpu.c