summaryrefslogtreecommitdiff
path: root/arch/csky/kernel/io.c
AgeCommit message (Collapse)AuthorFilesLines
2024-10-29csky: Use new fallback IO memcpy/memsetJulian Vetter1-91/+0
Use the new fallback memcpy_{from,to}io and memset_io functions from lib/iomem_copy.c on the csky processor architecture. Acked-by: Guo Ren <guoren@kernel.org> Reviewed-by: Yann Sionneau <ysionneau@kalrayinc.com> Signed-off-by: Julian Vetter <jvetter@kalrayinc.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2022-04-18csky: optimize memcpy_{from,to}io() and memset_io()Guo Ren1-0/+91
Optimize memcpy_{from,to}io() and memset_io() by transferring in 64 bit as much as possible with minimized barrier usage. This simplest optimization brings faster throughput compare to current byte-by-byte read and write with barrier in the loop. Code's skeleton is taken from the powerpc & arm64. Signed-off-by: Guo Ren <guoren@linux.alibaba.com> Signed-off-by: Guo Ren <guoren@kernel.org>