projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4299472
)
sched: Optimize branch hint in pick_next_task_fair()
author
Tim Blechmann
<
[email protected]
>
Tue, 24 Nov 2009 10:55:45 +0000
(11:55 +0100)
committer
Ingo Molnar
<
[email protected]
>
Tue, 24 Nov 2009 11:18:12 +0000
(12:18 +0100)
Branch hint profiling on my nehalem machine showed 90%
incorrect branch hints:
15728471
158903754
90 pick_next_task_fair
sched_fair.c 1555
Signed-off-by: Tim Blechmann <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
LKML-Reference: <
4B0BBBB1
.
2050100
@klingt.org>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/sched_fair.c
patch
|
blob
|
history
diff --git
a/kernel/sched_fair.c
b/kernel/sched_fair.c
index f28a2671a1a66bda87ed1b217f65c8bf9459c820..24086e7e75937951261359ba09ed377a8ea587d0 100644
(file)
--- a/
kernel/sched_fair.c
+++ b/
kernel/sched_fair.c
@@
-1704,7
+1704,7
@@
static struct task_struct *pick_next_task_fair(struct rq *rq)
struct cfs_rq *cfs_rq = &rq->cfs;
struct sched_entity *se;
- if (
unlikely(!cfs_rq->nr_running)
)
+ if (
!cfs_rq->nr_running
)
return NULL;
do {