sched: remove redundant hierarchy walk in check_preempt_wakeup
authorPaul Turner <pjt@google.com>
Wed, 8 Apr 2009 22:29:43 +0000 (15:29 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 9 Apr 2009 06:19:08 +0000 (08:19 +0200)
commit002f128b473fb82f454654be5081b0919ee01ab2
tree5425166733e7439257325e1f3f104fa48e416024
parente3c8ca8336707062f3f7cb1cd7e6b3c753baccdd
sched: remove redundant hierarchy walk in check_preempt_wakeup

Impact: micro-optimization

Under group scheduling we traverse up until we are at common siblings
to make the wakeup comparison on.

At this point however, they should have the same parent so continuing
to check up the tree is redundant.

Signed-off-by: Paul Turner <pjt@google.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <alpine.DEB.1.00.0904081520320.30317@kitami.corp.google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c