aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorXu Yang <xu.yang_2@nxp.com>2023-08-11 09:54:38 +0800
committerWill Deacon <will@kernel.org>2023-08-16 14:34:51 +0100
commitf4e2bd91ddf5e8543cbe7ad80b3fba3d2dc63fa3 (patch)
tree7b034c393c2b137f95cef1a311c51c80de7caefa /include
parente89ecd8368860bf05437eabd07d292c316221cfc (diff)
perf/imx_ddr: don't enable counter0 if none of 4 counters are used
In current driver, counter0 will be enabled after ddr_perf_pmu_enable() is called even though none of the 4 counters are used. This will cause counter0 continue to count until ddr_perf_pmu_disabled() is called. If pmu is not disabled all the time, the pmu interrupt will be asserted from time to time due to counter0 will overflow and irq handler will clear it. It's not an expected behavior. This patch will not enable counter0 if none of 4 counters are used. Fixes: 9a66d36cc7ac ("drivers/perf: imx_ddr: Add DDR performance counter support to perf") Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://lore.kernel.org/r/20230811015438.1999307-2-xu.yang_2@nxp.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions