mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
cpufreq: qcom-hw: use no_log when reading cpu counter val
Use the no_log version of readl_relaxed when reading out the counter values for CPUs to reduce the amount of logging in RTB Logs. Scheduler activity is very frequent and clogs up the buffer, which can potentially reduce the amount of useful logs. Change-Id: Ib5c7595c8bae1822837c3b1f1ae56fdc3c612933 Signed-off-by: David Dai <daidavid1@codeaurora.org>
This commit is contained in:
parent
6297328964
commit
614bbc4d3b
1 changed files with 2 additions and 1 deletions
|
|
@ -71,7 +71,8 @@ static u64 qcom_cpufreq_get_cpu_cycle_counter(int cpu)
|
|||
spin_lock_irqsave(&cpu_counter->lock, flags);
|
||||
|
||||
offset = CYCLE_CNTR_OFFSET(cpu, &cpu_domain->related_cpus);
|
||||
val = readl_relaxed(cpu_domain->reg_bases[REG_CYCLE_CNTR] + offset);
|
||||
val = readl_relaxed_no_log(cpu_domain->reg_bases[REG_CYCLE_CNTR] +
|
||||
offset);
|
||||
|
||||
if (val < cpu_counter->prev_cycle_counter) {
|
||||
/* Handle counter overflow */
|
||||
|
|
|
|||
Loading…
Reference in a new issue