powerpc/spufs: wait for stable spu status in spu_stopped()
authorLuke Browning <lukebrowning@us.ibm.com>
Thu, 29 May 2008 20:46:10 +0000 (17:46 -0300)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 16 Jun 2008 04:34:59 +0000 (14:34 +1000)
commitd84050f48ebba73994b93ccf61cea2364dac8d75
tree28137ea97f0707449e0bf85f334e7fb49a495987
parentd563923011110a91bdbf1d89055c3e803ec01f0f
powerpc/spufs: wait for stable spu status in spu_stopped()

If the spu is stopping (ie, the SPU_STATUS_RUNNING bit is still set),
re-read the register to get the final stopped value.

Signed-off-by: Luke Browning <lukebrowning@us.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/run.c