From a9e2af0e4c849cc261ba94e40dbae58397fdf0e1 Mon Sep 17 00:00:00 2001 From: Soohyun Kim Date: Mon, 22 Jan 2018 19:56:58 +0900 Subject: [PATCH] cpufreq: acme: change API for cooling device registration Change-Id: Ib52c8ca4209ef88ee85dcb3094d192899e4a2f9a Signed-off-by: Soohyun Kim --- drivers/cpufreq/exynos-acme.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index 41d209af4abf..4f6991d9b9b8 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -1648,9 +1648,11 @@ 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)); set_policy(domain); enable_domain(domain); - exynos_cpufreq_cooling_register(domain->dn, &domain->cpus); + if (!policy) + cpufreq_cooling_register(policy); set_boot_qos(domain); } -- 2.20.1