diff options
author | Aleksey Kuleshov <rndfax@yandex.ru> | 2015-11-25 15:23:22 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-11-26 09:36:34 +0100 |
commit | 114409c73e7d765dd5510b5a945b5e4c15ae4fa8 (patch) | |
tree | 0e4fe7f39f75408842ea0bd9b0638bbffdacf81b /arch/mips/lib/Makefile | |
parent | 6991f6ed5f669f816de9bec1d000fb12cf43687c (diff) | |
download | barebox-114409c73e7d765dd5510b5a945b5e4c15ae4fa8.tar.gz barebox-114409c73e7d765dd5510b5a945b5e4c15ae4fa8.tar.xz |
MIPS: import optimized string functions from Linux
10x performance gain according to simple test on QEMU malta:
barebox:/ time memcpy 0xa0000000 0xa0001000 0x100000
Signed-off-by: Aleksey Kuleshov <rndfax@yandex.ru>
Acked-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/lib/Makefile')
-rw-r--r-- | arch/mips/lib/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/lib/Makefile b/arch/mips/lib/Makefile index 0145f35876..02ee1893f8 100644 --- a/arch/mips/lib/Makefile +++ b/arch/mips/lib/Makefile @@ -7,6 +7,9 @@ obj-y += cpu-probe.o obj-y += traps.o obj-y += genex.o +obj-$(CONFIG_MIPS_OPTIMIZED_STRING_FUNCTIONS) += memcpy.o +obj-$(CONFIG_MIPS_OPTIMIZED_STRING_FUNCTIONS) += memset.o + obj-$(CONFIG_CPU_MIPS32) += c-r4k.o obj-$(CONFIG_CPU_MIPS64) += c-r4k.o |