]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] spufs: remove need for struct page for SPEs
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 13 Feb 2007 00:46:06 +0000 (11:46 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 13 Feb 2007 04:35:53 +0000 (15:35 +1100)
commitf846e054a754d0b21f7cef2ad5355d118c97d8c1
treec81720f08fc6410c41c50fde57588af66b00b6dc
parent556e928d2aedd16c806ee539cd48e668dd008ee5
[POWERPC] spufs: remove need for struct page for SPEs

This patch removes the need for struct page for SPE local store
and registers from spufs. It also makes the locking much more
obvious and no longer relying on the truncate logic black magic
for protecting against races between unmap_mapping_range() and
new pages faulted in. It does so by switching to a nopfn() handler
and using the new vm_insert_pfn() to setup the PTEs itself while
holding a lock on the SPE.

The nice thing is that this patch actually removes a lot more code
than it adds :-)

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Kconfig
arch/powerpc/platforms/cell/spu_manage.c
arch/powerpc/platforms/cell/spufs/file.c