From: Mike Galbraith Date: Wed, 5 Jan 2011 04:41:17 +0000 (+0100) Subject: sched: Fix signed unsigned comparison in check_preempt_tick() X-Git-Tag: v2.6.38-rc2~21^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7d8294415f0ce4254827d4a2a5ee88b00be52a8;p=pandora-kernel.git 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 Signed-off-by: Mike Galbraith Signed-off-by: Peter Zijlstra LKML-Reference: <1294202477.9384.5.camel@marge.simson.net> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed