summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2017-01-12 13:16:02 -0500
committerTom Rini <[email protected]>2017-01-20 15:38:01 -0500
commit40d5534cff720d566cd52f532f26eea2bd86c1ae (patch)
tree14647f1aaaa49a0591c1c13d184cf435caaa323c /common
parenta4a35934c7e0475e968e82ded33ef8ad47f10bc7 (diff)
ARM: Default to using optimized memset and memcpy routines
We have long had available optimized versions of the memset and memcpy functions that are borrowed from the Linux kernel. We should use these in normal conditions as the speed wins in many workflows outweigh the relatively minor size increase. However, we have a number of places where we're simply too close to size limits in SPL and must be able to make the size vs performance trade-off in those cases. Cc: Philippe Reynes <[email protected]> Cc: Eric Jarrige <[email protected]> Cc: Heiko Schocher <[email protected]> Cc: Magnus Lilja <[email protected]> Cc: Lokesh Vutla <[email protected]> Cc: Chander Kashyap <[email protected]> Cc: Akshay Saraswat <[email protected]> Cc: Simon Glass <[email protected]> Cc: Stefan Roese <[email protected]> Signed-off-by: Tom Rini <[email protected]> Acked-by: Stefan Roese <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'common')
-rw-r--r--common/init/board_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/init/board_init.c b/common/init/board_init.c
index ef01a9aeaad..193d8180a9c 100644
--- a/common/init/board_init.c
+++ b/common/init/board_init.c
@@ -17,7 +17,7 @@ DECLARE_GLOBAL_DATA_PTR;
*/
#if !defined(CONFIG_SPL_BUILD) || \
(defined(CONFIG_SPL_LIBGENERIC_SUPPORT) && \
- !defined(CONFIG_USE_ARCH_MEMSET))
+ !defined(CONFIG_SPL_USE_ARCH_MEMCPY))
#define _USE_MEMCPY
#endif