]> git.baikalelectronics.ru Git - kernel.git/commit
arm_pmu: simplify arm_pmu::handle_irq
authorMark Rutland <mark.rutland@arm.com>
Thu, 10 May 2018 10:35:15 +0000 (11:35 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 21 May 2018 17:07:05 +0000 (18:07 +0100)
commit0ed00ff04f3ad22a3824980befde029391fd8a1a
treee74a421c69c90cf2c1753907a74620bee799ee71
parent8e65f410d4740b0099d4682b4697839ca2aacb3e
arm_pmu: simplify arm_pmu::handle_irq

The arm_pmu::handle_irq() callback has the same prototype as a generic
IRQ handler, taking the IRQ number and a void pointer argument which it
must convert to an arm_pmu pointer.

This means that all arm_pmu::handle_irq() take an IRQ number they never
use, and all must explicitly cast the void pointer to an arm_pmu
pointer.

Instead, let's change arm_pmu::handle_irq to take an arm_pmu pointer,
allowing these casts to be removed. The redundant IRQ number parameter
is also removed.

Suggested-by: Hoeun Ryu <hoeun.ryu@lge.com>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/kernel/perf_event_v6.c
arch/arm/kernel/perf_event_v7.c
arch/arm/kernel/perf_event_xscale.c
arch/arm64/kernel/perf_event.c
drivers/perf/arm_pmu.c
include/linux/perf/arm_pmu.h