]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drivers/perf: arm_pmu: handle no platform_device
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:49 +0000 (09:39 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commit7654137071fa706e5c91f4f27bc2a5cd7e435a9b
tree95842326f7cc3e1d8262a793ba9a3e2818aaa962
parent3a5a89d30ee3d5d8b55490e3c63bf533b196e1c8
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>
drivers/perf/arm_pmu.c