[ARM] 2948/1: new preemption safe copy_{to|from}_user implementation
authorNicolas Pitre <nico@cam.org>
Tue, 1 Nov 2005 19:52:24 +0000 (19:52 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 1 Nov 2005 19:52:24 +0000 (19:52 +0000)
commitfadab0943d1c5b652a66858bb99b204fedaad96b
treeae8f83cd0b6c97ee2120688f3e4f4cfd431b0c3e
parent7549423000fc38d39a8b81c601dea0332c113a42
[ARM] 2948/1: new preemption safe copy_{to|from}_user implementation

Patch from Nicolas Pitre

This patch provides a preemption safe implementation of copy_to_user
and copy_from_user based on the copy template also used for memcpy.
It is enabled unconditionally when CONFIG_PREEMPT=y.  Otherwise if the
configured architecture is not ARMv3 then it is enabled as well as it
gives better performances at least on StrongARM and XScale cores.  If
ARMv3 is not too affected or if it doesn't matter too much then
uaccess.S could be removed altogether.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/lib/Makefile
arch/arm/lib/copy_from_user.S [new file with mode: 0644]
arch/arm/lib/copy_to_user.S [new file with mode: 0644]