From: LEROY Christophe Date: Tue, 19 May 2015 10:07:50 +0000 (+0200) Subject: powerpc/32: memset(0): use cacheable_memzero X-Git-Tag: omap-for-v4.3/fixes-rc1~100^2~6^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b2a32e806342f237f68435a50e1071f7f32b5c5;p=pandora-kernel.git 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 Signed-off-by: Scott Wood --- Reading git-diff-tree failed