From 95c74d3f5b958515a1674f8880f34169dee6ec64 Mon Sep 17 00:00:00 2001 From: Youngtae Lee Date: Wed, 2 May 2018 10:54:04 +0900 Subject: [PATCH] cpufreq: acme: get_freq returns cached freq when access offline cluster Change-Id: Id3a3fb04256664644a4a3daf61f2764e0c10462e Signed-off-by: Youngtae Lee --- drivers/cpufreq/exynos-acme.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/cpufreq/exynos-acme.c b/drivers/cpufreq/exynos-acme.c index 28ded8d70f75..f1fbecf3827a 100644 --- a/drivers/cpufreq/exynos-acme.c +++ b/drivers/cpufreq/exynos-acme.c @@ -147,6 +147,12 @@ static unsigned int get_freq(struct exynos_cpufreq_domain *domain) { int wakeup_flag = 0; unsigned int freq; + struct cpumask temp; + + cpumask_and(&temp, &domain->cpus, cpu_active_mask); + + if (cpumask_empty(&temp)) + return domain->old; if (domain->need_awake) { if (likely(domain->old)) -- 2.20.1