Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3b935a0a authored by Joonwoo Park's avatar Joonwoo Park Committed by Mark Salyzyn
Browse files

UPSTREAM: arm64: optimize memcpy_{from,to}io() and memset_io()

(cherry picked from commit 70ddb63a88bfd45eb6abe36e2bf4f8f351a447d7)

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.

Link: http://lkml.kernel.org/p/20141020133304.GH23751@e104818-lin.cambridge.arm.com


Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Reviewed-by: default avatarTrilok Soni <tsoni@codeaurora.org>
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Bug: 63716230
Change-Id: I27a3ecfcdb8d1e80ceac5eb5f71609283e0c901b
parent 8b259430
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment