mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
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:
parent
0aa9086a40
commit
12a9b84eee
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue