sched: Optimize branch hint in pick_next_task_fair()
authorTim Blechmann <tim@klingt.org>
Tue, 24 Nov 2009 10:55:45 +0000 (11:55 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 24 Nov 2009 11:18:12 +0000 (12:18 +0100)
commit36ace27e3e60d44ea69ce394b2e45386ae98d9d9
tree059cf2b286d14b90e6a2515e7014eff82b5c73c6
parent429947248f814e90f416ab4f68a871ab628000c3
sched: Optimize branch hint in pick_next_task_fair()

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 <tim@klingt.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <4B0BBBB1.2050100@klingt.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c