sched: Fix signed unsigned comparison in check_preempt_tick()
authorMike Galbraith <efault@gmx.de>
Wed, 5 Jan 2011 04:41:17 +0000 (05:41 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 18 Jan 2011 14:09:44 +0000 (15:09 +0100)
commitd7d8294415f0ce4254827d4a2a5ee88b00be52a8
tree9f8024d6566bc391fcb2aced8427db81ca4e9078
parentfce2097983d914ea8c2338efc6f6e9bb737f6ae4
sched: Fix signed unsigned comparison in check_preempt_tick()

Signed unsigned comparison may lead to superfluous resched if leftmost
is right of the current task, wasting a few cycles, and inadvertently
_lengthening_ the current task's slice.

Reported-by: Venkatesh Pallipadi <venki@google.com>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1294202477.9384.5.camel@marge.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c