aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2015-03-06 06:54:10 -0500
committerWill Deacon <will.deacon@arm.com>2015-03-24 11:09:47 -0400
commitd5efd9cc9cf2e422d064c912c7d5d985f52c1b2c (patch)
treeec4a29ce1df9016b48597888d55e925f3bdf4ac5 /arch/arm64/include
parent71bbf038eaa44a80dd6df0da7c708d4618172fe0 (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')
-rw-r--r--arch/arm64/include/asm/pmu.h1
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 {
44struct arm_pmu { 44struct arm_pmu {
45 struct pmu pmu; 45 struct pmu pmu;
46 cpumask_t active_irqs; 46 cpumask_t active_irqs;
47 int *irq_affinity;
47 const char *name; 48 const char *name;
48 irqreturn_t (*handle_irq)(int irq_num, void *dev); 49 irqreturn_t (*handle_irq)(int irq_num, void *dev);
49 void (*enable)(struct hw_perf_event *evt, int idx); 50 void (*enable)(struct hw_perf_event *evt, int idx);