From: Eunseok Choi Date: Tue, 23 Jan 2018 13:19:24 +0000 (+0900) Subject: cpufreq: acme: register cpufreq cooling device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec4f5566b168ead326357325327c70f9a450a3ce;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cpufreq: acme: register cpufreq cooling device Change-Id: I039e4db41c7db0a634e0e35d77000c576d63c514 Signed-off-by: Eunseok Choi --- diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index 4f6991d9b9b8..4e3cd606390a 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -1648,11 +1648,12 @@ static int __init exynos_cpufreq_init(void) * 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); }