cpufreq: qcom-hw: Notify the current frequency to the topology driver

The topology driver keeps track of the current capacity of a CPU and
make it available via arch_scale_freq_capacity(). The PELT load
tracking in the scheduler and energy-aware task placement are the
clients of this API. Hence notify the new frequency to the topology
driver during frequency transition.

Change-Id: Ia0890956f59082496e7d5d7ba8a9c09b343e44ec
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
[satyap@codeaurora.org: resolve trivial merge conflict]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
This commit is contained in:
Pavankumar Kondeti 2018-02-14 16:49:46 +05:30 • committed by Taniya Das
commit 12a9b84eee

View file

@ -51,6 +51,9 @@ qcom_cpufreq_hw_target_index(struct cpufreq_policy *policy,
struct cpufreq_qcom *c = policy->driver_data;
writel_relaxed(index, c->reg_bases[REG_PERF_STATE]);
arch_set_freq_scale(policy->related_cpus,
policy->freq_table[index].frequency,
policy->cpuinfo.max_freq);
return 0;
}