summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorChris Redpath <chris.redpath@arm.com>2015-01-30 16:29:35 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:41:35 +0900
commit50f2d97eeb73ee0ac16cf20b3a4789fe77f2de41 (patch)
tree392103309d8e842235e5f0746fc5cb00dc3d504c /kernel
parent68695fc5973a5a6cf55a597464f54726ce9f7c76 (diff)
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. Signed-off-by: Chris Redpath <chris.redpath@arm.com> [k.kozlowski: rebased on 4.1, no signed-off-by of previous committer] Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Diffstat (limited to 'kernel')
-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 db314fe78463..23da6b6a961a 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -5391,7 +5391,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? */