From 614bbc4d3bf9d521c3e9a5e2fda69de4b1296563 Mon Sep 17 00:00:00 2001 From: David Dai Date: Mon, 1 Apr 2019 16:08:45 -0700 Subject: [PATCH] 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 --- drivers/cpufreq/qcom-cpufreq-hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/qcom-cpufreq-hw.c b/drivers/cpufreq/qcom-cpufreq-hw.c index e37d049be849..61af15e3ae2a 100644 --- a/drivers/cpufreq/qcom-cpufreq-hw.c +++ b/drivers/cpufreq/qcom-cpufreq-hw.c @@ -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 */