]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/spufs: synchronize interaction between spu exception handling and time slicing
authorLuke Browning <lukebrowning@us.ibm.com>
Fri, 13 Jun 2008 04:17:35 +0000 (14:17 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 16 Jun 2008 04:35:01 +0000 (14:35 +1000)
commit8696f11c2887c85b296668dcb7ce4dcb8541498c
treea6c5953c1c453cbd9affe378e58629519d9c50d2
parent420247c6ad1005efa76b6a7ae7a7d59ff5f6f129
powerpc/spufs: synchronize interaction between spu exception handling and time slicing

Time slicing can occur at the same time as spu exception handling
resulting in the wakeup of the wrong thread.

This change uses the the spu's register_lock to enforce synchronization
between bind/unbind and spu exception handling so that they are
mutually exclusive.

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