diff options
author | Christoph Hellwig <hch@lst.de> | 2007-06-04 13:26:51 (GMT) |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-06-07 01:44:39 (GMT) |
commit | 47d3a5faa3f72186f769ed9579c630afb8433f2b (patch) | |
tree | 01e33e214b40d34ee6051d1381ba87521caa5d82 /arch/powerpc/platforms/cell/spufs/spufs.h | |
parent | 89df00855beabfa700f9a9ed52f0983bdc4b021d (diff) | |
download | linux-fsl-qoriq-47d3a5faa3f72186f769ed9579c630afb8433f2b.tar.xz |
[POWERPC] spufs: Synchronize pte invalidation vs ps close
Make sure the mapping_lock also protects access to the various address_space
pointers used for tearing down the ptes on a spu context switch.
Because unmap_mapping_range can sleep we need to turn mapping_lock from
a spinlock into a sleeping mutex.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/cell/spufs/spufs.h')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/spufs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/spufs.h b/arch/powerpc/platforms/cell/spufs/spufs.h index 0a947fd..47617e8 100644 --- a/arch/powerpc/platforms/cell/spufs/spufs.h +++ b/arch/powerpc/platforms/cell/spufs/spufs.h @@ -55,7 +55,7 @@ struct spu_context { struct address_space *signal2; /* 'signal2' area mappings. */ struct address_space *mss; /* 'mss' area mappings. */ struct address_space *psmap; /* 'psmap' area mappings. */ - spinlock_t mapping_lock; + struct mutex mapping_lock; u64 object_id; /* user space pointer for oprofile */ enum { SPU_STATE_RUNNABLE, SPU_STATE_SAVED } state; |