From: Paul Turner Date: Sat, 22 Jan 2011 04:44:59 +0000 (-0800) Subject: sched: Fix sign under-flows in wake_affine X-Git-Tag: v2.6.38-rc3~26^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e37b6a7b27b400c3aa488db8c6629a05095bc79c;p=pandora-kernel.git sched: Fix sign under-flows in wake_affine While care is taken around the zero-point in effective_load to not exceed the instantaneous rq->weight, it's still possible (e.g. using wake_idx != 0) for (load + effective_load) to underflow. In this case the comparing the unsigned values can result in incorrect balanced decisions. Signed-off-by: Paul Turner Signed-off-by: Peter Zijlstra LKML-Reference: <20110122044851.734245014@google.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed