diff options
author | Mark Rutland <mark.rutland@arm.com> | 2017-04-11 09:39:49 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2017-04-11 16:29:53 +0100 |
commit | 7654137071fa706e5c91f4f27bc2a5cd7e435a9b (patch) | |
tree | 95842326f7cc3e1d8262a793ba9a3e2818aaa962 /drivers/macintosh | |
parent | 3a5a89d30ee3d5d8b55490e3c63bf533b196e1c8 (diff) | |
download | linux-next-7654137071fa706e5c91f4f27bc2a5cd7e435a9b.tar.gz |
drivers/perf: arm_pmu: handle no platform_device
In armpmu_dispatch_irq() we look at arm_pmu::plat_device to acquire
platdata, so that we can defer to platform-specific IRQ handling,
required on some 32-bit parts. With the advent of ACPI we won't always
have a platform_device, and so we must avoid trying to dereference
fields from it.
This patch fixes up armpmu_dispatch_irq() to avoid doing so, introducing
a new armpmu_get_platdata() helper.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'drivers/macintosh')
0 files changed, 0 insertions, 0 deletions