diff options
author | Joonwoo Park <joonwoop@codeaurora.org> | 2015-10-28 10:15:52 -0700 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:02:38 -0700 |
commit | f406df7c3588d9a605639e9f72eb894898cfba02 (patch) | |
tree | a7a47544fca559a33134029c16927b3a9cc30035 /kernel | |
parent | 60abcbcfdfe548468e6c75bdf72cd46ba45d53b6 (diff) |
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: Joonwoo Park <joonwoop@codeaurora.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 0e92aaefc7eb..52e84a87b9eb 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -9598,6 +9598,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; |