Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ad67430 authored by Joonwoo Park's avatar Joonwoo Park Committed by Gerrit - the friendly Code Review server
Browse files

sched: initialize frequency domain cpumask



It's possible select_best_cpu() gets called before the first cpufreq
notifier call.  In such scenario select_best_cpu() can hang forever by
not clearing search_cpus.

Initialize frequency domain cpumask with the CPU of rq to avoid such
scenario.

CRs-fixed: 931349
Change-Id: If8d31c5477efe61ad7c6b336ba9e27ca6f556b63
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 049b7256
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9300,6 +9300,7 @@ void __init sched_init(void)
		rq->idle_stamp = 0;
		rq->avg_idle = 2*sysctl_sched_migration_cost;
#ifdef CONFIG_SCHED_HMP
		cpumask_set_cpu(i, &rq->freq_domain_cpumask);
		rq->cur_freq = 1;
		rq->max_freq = 1;
		rq->min_freq = 1;