sched: cfs.nr_running does not contain the intended metric

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>
This commit is contained in:
Chris Redpath
2013-05-16 17:48:41 +01:00
committed by Jon Medhurst
parent cf71912f48
commit 7e64466300

View File

@@ -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? */