Messages in this thread Patch in this message | | | Date | Tue, 24 Nov 2009 11:55:45 +0100 | From | Tim Blechmann <> | Subject | [PATCH 4/5] sched_fair.c: remove branch hint |
| |
branch hint profiling of my nehalem machine, showed 90% incorrect branch hints:
15728471 158903754 90 pick_next_task_fair sched_fair.c 1555
Signed-off-by: Tim Blechmann <tim@klingt.org> --- kernel/sched_fair.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index e5945df..5a0965c 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -1552,7 +1552,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 { -- 1.6.4.2
[unhandled content-type:application/pgp-signature] | |