cmd: mem: Use memcpy for 'cp' command
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 15 Dec 2016 18:00:13 +0000 (16:00 -0200)
committerTom Rini <trini@konsulko.com>
Thu, 12 Jan 2017 18:16:26 +0000 (13:16 -0500)
commitc2538421b28424b9705865e838c5fba19c9dc651
tree309aa03ecaab7c03003e67cbd9fb6a57b83c8c59
parent4386feb73da7946fc79b55c4fa41c6dd66dcb2e2
cmd: mem: Use memcpy for 'cp' command

Simplify the 'cp' command implementation by using the memcpy() function,
which brings the additional benefit of performance gain for those who have
CONFIG_USE_ARCH_MEMCPY selected.

Tested on a mx6qsabreauto board where a 5x gain in performance is seen
when reading 10MB from the parallel NOR memory.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
cmd/mem.c