From: Soohyun Kim Date: Fri, 23 Mar 2018 06:04:42 +0000 (+0900) Subject: [COMMON] cpufreq_schedutil: select alive cpu for scaling. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39b2c2052d4f081438a4f3ca82bbc9d810e1dfd2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] cpufreq_schedutil: select alive cpu for scaling. Change-Id: I42b75111f30c9921d858459db883ebdffad83798 Signed-off-by: Soohyun Kim --- diff --git a/kernel/sched/cpufreq_schedutil.c b/kernel/sched/cpufreq_schedutil.c index 107b1df2953d..dee7a12c6d1b 100644 --- a/kernel/sched/cpufreq_schedutil.c +++ b/kernel/sched/cpufreq_schedutil.c @@ -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,