From 39b2c2052d4f081438a4f3ca82bbc9d810e1dfd2 Mon Sep 17 00:00:00 2001 From: Soohyun Kim Date: Fri, 23 Mar 2018 15:04:42 +0900 Subject: [PATCH] [COMMON] cpufreq_schedutil: select alive cpu for scaling. Change-Id: I42b75111f30c9921d858459db883ebdffad83798 Signed-off-by: Soohyun Kim --- kernel/sched/cpufreq_schedutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1