]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] FRV: Make futex code compilable on nommu [try #2]
authorDavid Howells <dhowells@redhat.com>
Fri, 6 Jan 2006 08:11:44 +0000 (00:11 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:33:33 +0000 (08:33 -0800)
commit6ac6223a97e0d823cc5b881c5f052c8df3038ff8
treee2f9f42b0731d5006fa329a590069be6787af1de
parent96f5583be290cf681474bf4dcaee7ed3c50d42f6
[PATCH] FRV: Make futex code compilable on nommu [try #2]

Make the futex code compilable and usable on NOMMU by making the attempt to
handle page faults conditional on CONFIG_MMU.  If this is not enabled, then
we can assume that EFAULT returned from futex_atomic_op_inuser() is not
recoverable, and that the address lies outside of valid memory.

handle_mm_fault() is made to BUG if called on NOMMU without attempting to
invoke the actual handler (__handle_mm_fault).

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/mm.h
kernel/futex.c