devfreq: delete l2wb feature pmu events during governor stop

Delete l2wb and l3 access pmu events when the governor
is stopped.

Change-Id: If443cb6b53e2ad43ebee04a1fc3274a31b05e5b9
Signed-off-by: Santosh Mardi <gsantosh@codeaurora.org>
This commit is contained in:
Santosh Mardi 2020-11-02 15:54:58 +05:30
commit 25253a2705

View file

@ -657,8 +657,13 @@ static void stop_hwmon(struct memlat_hwmon *hw)
unsigned int idx = cpu - cpumask_first(&mon->cpus);
struct dev_stats *devstats = to_devstats(mon, cpu);
if (mon->miss_ev)
if (mon->miss_ev) {
delete_event(&mon->miss_ev[idx]);
if (mon->wb_ev)
delete_event(&mon->wb_ev[idx]);
if (mon->access_ev)
delete_event(&mon->access_ev[idx]);
}
devstats->inst_count = 0;
devstats->mem_count = 0;
devstats->freq = 0;