projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf71912
)
sched: cfs.nr_running does not contain the intended metric
author
Chris Redpath
<chris.redpath@arm.com>
Thu, 16 May 2013 16:48:41 +0000
(17:48 +0100)
committer
Jon Medhurst
<tixy@linaro.org>
Wed, 17 Jul 2013 10:12:27 +0000
(11:12 +0100)
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>
kernel/sched/fair.c
patch
|
blob
|
history
diff --git
a/kernel/sched/fair.c
b/kernel/sched/fair.c
index e18fac530d35fbcd4c89436c064ceb48174bf9e1..90f61d848cb2eb8e5e21f278da1e1f8cd511acdc 100644
(file)
--- 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? */