arm64: perf: Fix the pmu node name in warning message
authorSuzuki K. Poulose <suzuki.poulose@arm.com>
Mon, 13 Apr 2015 09:17:55 +0000 (10:17 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 30 Apr 2015 11:11:30 +0000 (12:11 +0100)
commit8291fd04d86b97869bd34e796bcac3141b9d5432
tree26907766bd659e38094660dcceff469411ad2c3d
parentd795ef9aa8311ca3c5158bda1edbcd14479c101c
arm64: perf: Fix the pmu node name in warning message

With commit d5efd9cc9cf2 ("arm64: pmu: add support for interrupt-affinity
property"), we print a warning when we find a PMU SPI with a missing
missing interrupt-affinity property in a pmu node. Unfortunately, we
pass the wrong (NULL) device node to of_node_full_name, resulting in
unhelpful messages such as:

 hw perfevents: Failed to parse <no-node>/interrupt-affinity[0]

This patch fixes the name to that of the pmu node.

Fixes: d5efd9cc9cf2 (arm64: pmu: add support for interrupt-affinity property)
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/perf_event.c