cpufreq: acme: get_freq returns cached freq when access offline cluster
authorYoungtae Lee <yt0729.lee@samsung.com>
Wed, 2 May 2018 01:54:04 +0000 (10:54 +0900)
committerlakkyung.jung <lakkyung.jung@samsung.com>
Mon, 23 Jul 2018 05:59:11 +0000 (14:59 +0900)
Change-Id: Id3a3fb04256664644a4a3daf61f2764e0c10462e
Signed-off-by: Youngtae Lee <yt0729.lee@samsung.com>
drivers/cpufreq/exynos-acme.c

index 28ded8d70f75f1229793398022d37e0f21fd42f9..f1fbecf3827afde9ace6275bf2530af3617380ea 100644 (file)
@@ -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))