diff options
author | Rob Herring <rob.herring@calxeda.com> | 2012-02-07 09:28:22 -0600 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-02-21 17:04:10 -0600 |
commit | 13a5045d4ee5a244195062cbf2c651d1b4f22aa7 (patch) | |
tree | 56c48e3304976258298b52c2ab95288f7e0ffd58 /arch/arm/kernel/entry-common.S | |
parent | d65b4e98d7ea3038b767b70fe8be959b2913f16d (diff) | |
download | blackbird-obmc-linux-13a5045d4ee5a244195062cbf2c651d1b4f22aa7.tar.gz blackbird-obmc-linux-13a5045d4ee5a244195062cbf2c651d1b4f22aa7.zip |
ARM: make arch_ret_to_user macro optional
Only 3 platforms need arch_ret_to_user macro, so add ARCH_HAS_RET_TO_USER
kconfig option and make iop13xx, iop32x and iop33x select it.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Diffstat (limited to 'arch/arm/kernel/entry-common.S')
-rw-r--r-- | arch/arm/kernel/entry-common.S | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S index 9fd0ba90c1d2..54ee265dd819 100644 --- a/arch/arm/kernel/entry-common.S +++ b/arch/arm/kernel/entry-common.S @@ -10,9 +10,15 @@ #include <asm/unistd.h> #include <asm/ftrace.h> -#include <mach/entry-macro.S> #include <asm/unwind.h> +#ifdef CONFIG_NEED_RET_TO_USER +#include <mach/entry-macro.S> +#else + .macro arch_ret_to_user, tmp1, tmp2 + .endm +#endif + #include "entry-header.S" |