• S
    ARM: perf: Only reset PMxEVCNTCR registers on reset · 93499918
    Stephen Boyd 提交于
    The Krait specific PMxEVCNTCR register is unpredictable upon
    reset. Currently we clear the register before we setup an event,
    but we don't need to do that. Instead, we can iterate through all
    the events and clear them once when we reset the PMU, saving a
    write in the event setup path.
    
    Cc: Neil Leeder <nleeder@codeaurora.org>
    Cc: Ashwin Chaugule <ashwinc@codeaurora.org>
    Cc: Sheetal Sahasrabudhe <sheetals@codeaurora.org>
    Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
    Signed-off-by: NWill Deacon <will.deacon@arm.com>
    93499918
perf_event_v7.c 45.3 KB