[U-Boot] [RFC] cmd: mem: Allow 'cp' to use the optimized memcpy
Tom Rini
trini at konsulko.com
Thu Dec 15 16:29:38 CET 2016
On Thu, Dec 15, 2016 at 01:23:15PM -0200, Fabio Estevam wrote:
> If CONFIG_USE_ARCH_MEMCPY is selected, let's use the assembly optimized
> memcpy implementation for the 'cp' command.
>
> Currently only Blackfin uses memcpy for the 'cp' command, so extend
> this to the CONFIG_USE_ARCH_MEMCPY users.
>
> 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 at nxp.com>
> ---
> Sending as RFC as I don't know if any extra checks would be required here,
> so I appreciate any feedback.
We should re-work this to simply call memcpy() always, outside of the
case of dealing with flash/dataflash as that would simplify this code,
no?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161215/8f62991c/attachment.sig>
More information about the U-Boot
mailing list