From: Jordi Caubet Date: Wed, 12 Apr 2006 15:44:27 +0000 (+0200) Subject: [PATCH] spufs: fix context-switch decrementer code X-Git-Tag: v2.6.17-rc2~16^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=183b73ae7c9e4e19fa95d88e1778481899a65210;p=pandora-kernel.git [PATCH] spufs: fix context-switch decrementer code We found that when the 'decrementer' is saved, the PPE saves the current time 'csa->suspend_time'. When restoring the 'decrementer', (Step 34) decrementer seems to be adjusted with the number of cycles th= at a spu thread has not been running. In that code it is missing a substract ('-') because 'delta_time' is assigned a not substracted(see bellow). Acked-by: Mark Nutter Signed-off-by: Arnd Bergmann Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed