]> err.no Git - linux-2.6/commit
spufs: make signal-notification files readonly for NOSCHED contexts
authorJeremy Kerr <jk@ozlabs.org>
Sat, 21 Jul 2007 11:37:51 +0000 (04:37 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 00:49:16 +0000 (17:49 -0700)
commit8b6f50ef1d5cc86b278eb42bc91630fad455fb10
tree363762c8b3775ffd48cb469e09161cb6743fbe67
parentcfd13af6270c25e8089e9c5b59ffb55d39ae74a0
spufs: make signal-notification files readonly for NOSCHED contexts

Reading from the signal{1,2} files requires a spu_acquire_saved, so make these
files write-only for contexts created with SPU_CREATE_NOSCHED.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/platforms/cell/spufs/file.c