linux/arch/powerpc/platforms
Dwayne Grant McConnell 17f88cebc2 [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>
2006-12-04 20:39:50 +11:00
..
4xx ppc: Various minor compile fixes 2005-10-11 22:08:12 +10:00
8xx powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
82xx [POWERPC] Make pci_read_irq_line the default 2006-12-04 16:00:04 +11:00
83xx [POWERPC] Remove ppc_md.pci_map_irq & ppc_swizzle for ARCH=powerpc 2006-12-04 16:00:14 +11:00
85xx [POWERPC] Remove ioremap64 and fixup_bigphys_addr 2006-12-04 20:39:04 +11:00
86xx [POWERPC] Make pci_read_irq_line the default 2006-12-04 16:00:04 +11:00
apus powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
cell [POWERPC] spufs: Read from signal files only if data is there 2006-12-04 20:39:50 +11:00
chrp [POWERPC] Merge 32 and 64 bits asm-powerpc/io.h 2006-12-04 20:39:05 +11:00
efika [PATCH] Add Efika platform support 2006-11-13 14:45:04 +11:00
embedded6xx [POWERPC] Make pci_read_irq_line the default on mpc7448hpc2 board 2006-12-04 20:39:27 +11:00
iseries [POWERPC] Merge 32 and 64 bits asm-powerpc/io.h 2006-12-04 20:39:05 +11:00
maple [POWERPC] Make pci_read_irq_line the default 2006-12-04 16:00:04 +11:00
pasemi [POWERPC] Refactor 64 bits DMA operations 2006-12-04 20:38:40 +11:00
powermac [POWERPC] Merge 32 and 64 bits asm-powerpc/io.h 2006-12-04 20:39:05 +11:00
prep powerpc: Merge enough to start building in arch/powerpc. 2005-09-26 16:04:21 +10:00
pseries [POWERPC] Wrap cpu_die() with CONFIG_HOTPLUG_CPU 2006-12-04 20:39:29 +11:00
Makefile [PATCH] Add Efika platform support 2006-11-13 14:45:04 +11:00