aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/systbl.S
diff options
context:
space:
mode:
authorDwayne Grant McConnell <decimal@us.ibm.com>2006-11-20 18:45:01 +0100
committerPaul Mackerras <paulus@samba.org>2006-12-04 20:39:50 +1100
commit17f88cebc2c3aff9d90f0d49f6e0628835eddc32 (patch)
treed22b5b04d4bd4d3cc2ab87dcee28918c2abbd2fa /arch/powerpc/kernel/systbl.S
parent69a2f00ce5d3a19a70b36f08eaf9049677277710 (diff)
[POWERPC] spufs: Read from signal files only if data is there
We need to check the channel count of the signal notification registers before reading them, because it can be undefined when the count is zero. In order to read count and data atomically, we read from the saved context. This patch uses spu_acquire_saved() to force a context save before a /signal1 or /signal2 read. Because of this it is no longer necessary to have backing_ops and hw_ops versions of this function so they have been removed. Regular applications should not rely on reading this register to be fast, as it's conceptually a write-only file from the PPE perspective. Signed-off-by: Dwayne Grant McConnell <decimal@us.ibm.com> Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/systbl.S')
0 files changed, 0 insertions, 0 deletions