From: Chris Redpath Date: Thu, 16 May 2013 16:48:41 +0000 (+0100) Subject: sched: cfs.nr_running does not contain the intended metric X-Git-Tag: firefly_0821_release~3680^2~16^2^2~59 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7e6446630039fcbabb9582ebefdcbc30de32c0e2;p=firefly-linux-kernel-4.4.55.git 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 --- diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index e18fac530d35..90f61d848cb2 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? */