From: Soohyun Kim Date: Mon, 22 Jan 2018 10:56:58 +0000 (+0900) Subject: cpufreq: acme: change API for cooling device registration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a9e2af0e4c849cc261ba94e40dbae58397fdf0e1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cpufreq: acme: change API for cooling device registration Change-Id: Ib52c8ca4209ef88ee85dcb3094d192899e4a2f9a Signed-off-by: Soohyun Kim --- 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); }