Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25253a27 authored by Santosh Mardi's avatar Santosh Mardi
Browse files

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: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 73ee91fc
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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;