aboutsummaryrefslogtreecommitdiff
path: root/kernel/sched/core.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2014-01-22 12:43:08 +0000
committerMark Brown <broonie@linaro.org>2014-01-22 12:43:08 +0000
commit4105a61b153ff238387b999be6f8bf97a2843690 (patch)
tree95a4d0609a5c41dead8b9f2d0b3bf4a97883e730 /kernel/sched/core.c
parent750a8dee18ab8b5dc6ddec36016fcacc4293d6d4 (diff)
parent2305009118181260b45aab82f14bcbb659953ef1 (diff)
downloadlinaro-lsk-4105a61b153ff238387b999be6f8bf97a2843690.tar.gz
Merge remote-tracking branch 'lsk/v3.10/topic/big.LITTLE' into linux-linaro-lsk
Diffstat (limited to 'kernel/sched/core.c')
-rw-r--r--kernel/sched/core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 134d8158dd8..277e3557d0e 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3854,8 +3854,11 @@ __setscheduler(struct rq *rq, struct task_struct *p, int policy, int prio)
p->sched_class = &rt_sched_class;
#ifdef CONFIG_SCHED_HMP
if (!cpumask_empty(&hmp_slow_cpu_mask))
- if (cpumask_equal(&p->cpus_allowed, cpu_all_mask))
+ if (cpumask_equal(&p->cpus_allowed, cpu_all_mask)) {
+ p->nr_cpus_allowed =
+ cpumask_weight(&hmp_slow_cpu_mask);
do_set_cpus_allowed(p, &hmp_slow_cpu_mask);
+ }
#endif
}
else