]> git.baikalelectronics.ru Git - 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)
committerWill Deacon <will.deacon@arm.com>
Tue, 11 Apr 2017 15:29:53 +0000 (16:29 +0100)
commit157975da578a5f86eedbfa7d56d5438d3cd5ad49
treeffef1680e6e4aa6bf5db7c938e0a975306073394
parent8fb3f33bc23e38f0e8750352325efc456785a0be
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