• Mark Rutland's avatar
    ARM: perf: Remove unnecessary armpmu->enable()s · 7325eaec
    Mark Rutland authored
    Currently, armpmu_enable iterates through the events for a given
    counter set, calling armpmu->enable on each before calling
    armpmu->start to start the PMU's counters.
    
    As armpmu->enable is called when each event is added, each event is
    already configured in hardware. Due to this, calling armpmu->enable
    in armpmu_enable is unnecessary and confusing.
    
    This patch removes the unnecessary calls to armpmu->enable.
    Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    7325eaec
perf_event.c 19 KB