commit | c2538421b28424b9705865e838c5fba19c9dc651 | [log] [tgz] |
---|---|---|
author | Fabio Estevam <fabio.estevam@nxp.com> | Thu Dec 15 16:00:13 2016 -0200 |
committer | Tom Rini <trini@konsulko.com> | Thu Jan 12 13:16:26 2017 -0500 |
tree | 309aa03ecaab7c03003e67cbd9fb6a57b83c8c59 | |
parent | 4386feb73da7946fc79b55c4fa41c6dd66dcb2e2 [diff] |
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>