aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Redpath <chris.redpath@arm.com>2013-05-16 17:48:41 +0100
committerJon Medhurst <tixy@linaro.org>2013-07-17 11:12:27 +0100
commit7e6446630039fcbabb9582ebefdcbc30de32c0e2 (patch)
tree28a6e3af7d14ac0fe00e554ddbbc7c8f4c8bb538
parentcf71912f481c7b6fc39e9b2021e8f9c058116c26 (diff)
downloadmp-master-task-placement-v2-sysfs.tar.gz
sched: cfs.nr_running does not contain the intended metricmaster-task-placement-v2-sysfs
rq->nr_running is the actual number of runnable tasks we wish to use to determine if a task is alone on a CPU. Change-Id: Icaf3022e02924ecdc94e14d4146c6fadd9580e2b Signed-off-by: Chris Redpath <chris.redpath@arm.com>
-rw-r--r--kernel/sched/fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index e18fac5..90f61d8 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -3893,7 +3893,7 @@ static inline unsigned int hmp_offload_down(int cpu, struct sched_entity *se)
return NR_CPUS;
/* Is the task alone on the cpu? */
- if (cpu_rq(cpu)->cfs.nr_running < 2)
+ if (cpu_rq(cpu)->nr_running < 2)
return NR_CPUS;
/* Is the task actually starving? */