diff options
| author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2015-01-15 17:41:54 -0500 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-01-16 09:49:08 -0500 |
| commit | c25630381c6e093819d86d9618798db932cc2d90 (patch) | |
| tree | 6091a27765e09308662ec19db31b653ecc2d4779 /arch/arm/lib/Makefile | |
| parent | 0b7857dbeb256d1a9c0c606ec4b5f417e159040b (diff) | |
ARM: 8285/1: remove ARMv3 user access code again
This code was restored with commit 080fc66fb5 ("ARM: Bring back ARMv3 IO
and user access code") because the RiscPC memory bus does not understand
half-word load/stores. However only the IO code needed restoring since
the alternative user access code contains no half-word accesses, is
already used when CONFIG_PREEMPT is set and runs faster on a StrongARM.
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/lib/Makefile')
| -rw-r--r-- | arch/arm/lib/Makefile | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 0573faab96ad..d8a780799506 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile | |||
| @@ -15,19 +15,8 @@ lib-y := backtrace.o changebit.o csumipv6.o csumpartial.o \ | |||
| 15 | io-readsb.o io-writesb.o io-readsl.o io-writesl.o \ | 15 | io-readsb.o io-writesb.o io-readsl.o io-writesl.o \ |
| 16 | call_with_stack.o bswapsdi2.o | 16 | call_with_stack.o bswapsdi2.o |
| 17 | 17 | ||
| 18 | mmu-y := clear_user.o copy_page.o getuser.o putuser.o | 18 | mmu-y := clear_user.o copy_page.o getuser.o putuser.o \ |
| 19 | 19 | copy_from_user.o copy_to_user.o | |
| 20 | # the code in uaccess.S is not preemption safe and | ||
| 21 | # probably faster on ARMv3 only | ||
| 22 | ifeq ($(CONFIG_PREEMPT),y) | ||
| 23 | mmu-y += copy_from_user.o copy_to_user.o | ||
| 24 | else | ||
| 25 | ifneq ($(CONFIG_CPU_32v3),y) | ||
| 26 | mmu-y += copy_from_user.o copy_to_user.o | ||
| 27 | else | ||
| 28 | mmu-y += uaccess.o | ||
| 29 | endif | ||
| 30 | endif | ||
| 31 | 20 | ||
| 32 | # using lib_ here won't override already available weak symbols | 21 | # using lib_ here won't override already available weak symbols |
| 33 | obj-$(CONFIG_UACCESS_WITH_MEMCPY) += uaccess_with_memcpy.o | 22 | obj-$(CONFIG_UACCESS_WITH_MEMCPY) += uaccess_with_memcpy.o |
