• Suzuki K Poulose's avatar
    arm_pmu: Tidy up clear_event_idx call backs · 7dfc8db1
    Suzuki K Poulose authored
    The armpmu uses get_event_idx callback to allocate an event
    counter for a given event, which marks the selected counter
    as "used". Now, when we delete the counter, the arm_pmu goes
    ahead and clears the "used" bit and then invokes the "clear_event_idx"
    call back, which kind of splits the job between the core code
    and the backend. To keep things tidy, mandate the implementation
    of clear_event_idx() and add it for exisiting backends.
    This will be useful for adding the chained event support, where
    we leave the event idx maintenance to the backend.
    
    Also, when an event is removed from the PMU, reset the hw.idx
    to indicate that a counter is not allocated for this event,
    to help the backends do better checks. This will be also used
    for the chain counter support.
    
    Cc: Will Deacon <will.deacon@arm.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Reviewed-by: default avatarJulien Thierry <julien.thierry@arm.com>
    Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    7dfc8db1
Name
Last commit
Last update
..
hisilicon Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
arm-cci.c Loading commit data...
arm-ccn.c Loading commit data...
arm_dsu_pmu.c Loading commit data...
arm_pmu.c Loading commit data...
arm_pmu_acpi.c Loading commit data...
arm_pmu_platform.c Loading commit data...
arm_spe_pmu.c Loading commit data...
qcom_l2_pmu.c Loading commit data...
qcom_l3_pmu.c Loading commit data...
xgene_pmu.c Loading commit data...