]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/32: memset(0): use cacheable_memzero
authorLEROY Christophe <christophe.leroy@c-s.fr>
Tue, 19 May 2015 10:07:50 +0000 (12:07 +0200)
committerScott Wood <scottwood@freescale.com>
Sat, 8 Aug 2015 03:59:21 +0000 (22:59 -0500)
commit5b2a32e806342f237f68435a50e1071f7f32b5c5
treeab35d6e9fe821c2cdd90d8bdbfce68cddae8c5a8
parentdf087e450d7ddc0b15bd8824206d964720b4f5e4
powerpc/32: memset(0): use cacheable_memzero

cacheable_memzero uses dcbz instruction and is more efficient than
memset(0) when the destination is in RAM

This patch renames memset as generic_memset, and defines memset
as a prolog to cacheable_memzero. This prolog checks if the byte
to set is 0. If not, it falls back to generic_memcpy()

cacheable_memzero disappears as it is not referenced anywhere anymore

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/lib/copy_32.S