Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3cc1fda1 authored by Raghavendra Rao Ananta's avatar Raghavendra Rao Ananta
Browse files

perf: arm: fix IRQ initializations in the driver



During the ARM PMU driver's probe, the IRQ number and state
are set when requesting for the IRQ lines. However, these
values are re-initialized when the driver tries to register
with the perf framework later. The bug prevents the driver
from re-enabling the interrupts during the CPU hotplug-on
case (or any IRQ operation thereafter), thus not triggering
any interrupt. Perf sampling events would be mainly impacted
by this as they update the samples for every overflow interrupt.

Hence, moving the initializations of the IRQ number and state
after the arm_pmu structure is allocated. The correct values
can be recorded after requesting the IRQ.

Change-Id: Ia4361a31e9e960efc7156f813c543574b197ff68
Signed-off-by: default avatarRaghavendra Rao Ananta <rananta@codeaurora.org>
parent c745d32a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment