sched: Make sure to not re-read variables after validation
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Tue, 22 May 2012 12:04:28 +0000 (14:04 +0200)
committerIngo Molnar <mingo@kernel.org>
Wed, 30 May 2012 12:02:24 +0000 (14:02 +0200)
We could re-read rq->rt_avg after we validated it was smaller than
total, invalidating the check and resulting in an unintended negative.

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: David Rientjes <rientjes@google.com>
Link: http://lkml.kernel.org/r/1337688268.9698.29.camel@twins
Signed-off-by: Ingo Molnar <mingo@kernel.org>

No differences found