]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drivers/perf: arm_pmu: simplify cpu_pmu_request_irqs()
authorMark Rutland <mark.rutland@arm.com>
Tue, 11 Apr 2017 08:39:48 +0000 (09:39 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 17 May 2017 16:41:03 +0000 (13:41 -0300)
commit5654f1f1884ffbfa831e5c7523376c371587c98d
tree6ed656c18bc10656bd9b909897b62770b58bdd4b
parente29b55590a2b9a47fe604a43fef54df197ca56bd
drivers/perf: arm_pmu: simplify cpu_pmu_request_irqs()

BugLink: https://bugs.launchpad.net/bugs/1689661
The ARM PMU framework code always uses armpmu_dispatch_irq as its common
IRQ handler. Passing this down from cpu_pmu_init() is somewhat
pointless, and gets in the way of refactoring.

This patch makes cpu_pmu_request_irqs() always use armpmu_dispatch_irq
as the handler when requesting IRQs, and removes the handler parameter
from its prototype.

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>
(cherry picked from commit 3a5a89d30ee3d5d8b55490e3c63bf533b196e1c8)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/perf/arm_pmu.c