]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
[POWERPC] spufs: clear class2 interrupt status before wakeup
authorMasato Noguchi <Masato.Noguchi@jp.sony.com>
Mon, 19 Jun 2006 18:33:33 +0000 (20:33 +0200)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Jun 2006 05:01:32 +0000 (15:01 +1000)
commitba723fe2b2facc8d45b53701fec39aa429596759
tree637c2ed713cbfa712d4306f98a43656379e1c5ba
parent6e18b27bd0911d4d2495c6fdeeac0c047d915300
[POWERPC] spufs: clear class2 interrupt status before wakeup

SPU interrupt status must be cleared before handle it.
Otherwise, kernel may drop some interrupt packet.

Currently, class2 interrupt treated like:
 1) call callback to wake up waiting process
 2) mask raised mailbox interrupt
 3) clear interrupt status

I changed like:
 1) mask raised mailbox interrupt
 2) clear interrupt status
 3) call callback to wake up waiting process

Clearing status before masking will make spurious interrupt.
Thus, it is necessary to hold by steps I described above, I think.

Signed-off-by: Masato Noguchi <Masato.Noguchi@jp.sony.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spu_base.c