]> git.baikalelectronics.ru Git - 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)
commit5d19293ed3dc01c0a4fec5784e305252df59ab94
tree95842326f7cc3e1d8262a793ba9a3e2818aaa962
parent157975da578a5f86eedbfa7d56d5438d3cd5ad49
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