Change-Id: I039e4db41c7db0a634e0e35d77000c576d63c514
Signed-off-by: Eunseok Choi <es10.choi@samsung.com>
* Update frequency as soon as domain is enabled.
*/
list_for_each_entry(domain, &domains, list) {
- struct cpufreq_policy *policy = cpufreq_cpu_get_raw(cpumask_first(&domain->cpus));
+ struct cpufreq_policy *policy;
set_policy(domain);
enable_domain(domain);
- if (!policy)
- cpufreq_cooling_register(policy);
+ policy = cpufreq_cpu_get_raw(cpumask_first(&domain->cpus));
+ if (policy)
+ exynos_cpufreq_cooling_register(domain->dn, policy);
set_boot_qos(domain);
}