From ec4f5566b168ead326357325327c70f9a450a3ce Mon Sep 17 00:00:00 2001 From: Eunseok Choi Date: Tue, 23 Jan 2018 22:19:24 +0900 Subject: [PATCH] cpufreq: acme: register cpufreq cooling device Change-Id: I039e4db41c7db0a634e0e35d77000c576d63c514 Signed-off-by: Eunseok Choi --- drivers/cpufreq/exynos-acme.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.20.1