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:
David Dai 2019-04-01 16:08:45 -07:00 • committed by Taniya Das
commit 614bbc4d3b

View file

@ -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 */