From: Roel Kluin Date: Wed, 26 Aug 2009 12:48:35 +0000 (+0200) Subject: MIPS: Octeon: False positive timeout X-Git-Tag: v2.6.32-rc1~658^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fff9c815291d5f4132976ac337337ea5813663e6;p=pandora-kernel.git MIPS: Octeon: False positive timeout If we reach the test just below the loop with a `timeout' value of 0, this does not mean that the timeout caused the loop to end, but rather the `smi_rd.s.pending', in the last iteration. If timeout caused the loop to end, then `timeout' is -1, not 0. Since this can occur only in the last iteration, it is not very likely to be a problem. By changing the post- to prefix decrement we ensure that a timeout of 0 does mean it timed out. Signed-off-by: Roel Kluin Acked-by: David Daney Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed