[COMMON] cpufreq_schedutil: select alive cpu for scaling.
authorSoohyun Kim <soohyuni.kim@samsung.com>
Fri, 23 Mar 2018 06:04:42 +0000 (15:04 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:33:05 +0000 (17:33 +0900)
Change-Id: I42b75111f30c9921d858459db883ebdffad83798
Signed-off-by: Soohyun Kim <soohyuni.kim@samsung.com>
kernel/sched/cpufreq_schedutil.c

index 107b1df2953db2b41a99e94b8b14d490a9a7ca54..dee7a12c6d1bb7b1d3623b7e24c35d6c894293d8 100644 (file)
@@ -179,7 +179,7 @@ static int sugov_select_scaling_cpu(void)
                        return cpu;
        }
 
-       return cpumask_weight(&mask) - 1;
+       return cpumask_any(&mask);
 }
 
 static void sugov_update_commit(struct sugov_policy *sg_policy, u64 time,