• Mark Rutland's avatar
    arm_pmu: note IRQs and PMUs per-cpu · 84b4be57
    Mark Rutland authored
    To support ACPI systems, we need to request IRQs before we know the
    associated PMU, and thus we need some percpu variable that the IRQ
    handler can find the PMU from.
    
    As we're going to request IRQs without the PMU, we can't rely on the
    arm_pmu::active_irqs mask, and similarly need to track requested IRQs
    with a percpu variable.
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    [will: made armpmu_count_irq_users static]
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    84b4be57
arm_pmu.c 21.2 KB