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)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commit3a5a89d30ee3d5d8b55490e3c63bf533b196e1c8
treeffef1680e6e4aa6bf5db7c938e0a975306073394
parent74a2b3ea2d8c6c1f73103a0fcb50b5c214c0d864
drivers/perf: arm_pmu: simplify cpu_pmu_request_irqs()

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>
drivers/perf/arm_pmu.c