diff options
author | Will Deacon <will.deacon@arm.com> | 2015-03-06 11:54:10 +0000 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-03-24 15:09:47 +0000 |
commit | d5efd9cc9cf2e422d064c912c7d5d985f52c1b2c (patch) | |
tree | ec4a29ce1df9016b48597888d55e925f3bdf4ac5 /arch/arm64/include/asm/pmu.h | |
parent | 71bbf038eaa44a80dd6df0da7c708d4618172fe0 (diff) |
arm64: 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>
Diffstat (limited to 'arch/arm64/include/asm/pmu.h')
-rw-r--r-- | arch/arm64/include/asm/pmu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/pmu.h b/arch/arm64/include/asm/pmu.h index e6f087806aaf..b7710a59672c 100644 --- a/arch/arm64/include/asm/pmu.h +++ b/arch/arm64/include/asm/pmu.h @@ -44,6 +44,7 @@ struct pmu_hw_events { struct arm_pmu { struct pmu pmu; cpumask_t active_irqs; + int *irq_affinity; const char *name; irqreturn_t (*handle_irq)(int irq_num, void *dev); void (*enable)(struct hw_perf_event *evt, int idx); |