mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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:
parent
73ee91fc44
commit
25253a2705
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue