ARCv2: memset: don't prefetch for len == 0 which happens a alot
authorVineet Gupta <vgupta@kernel.org>
Fri, 7 Feb 2020 20:27:02 +0000 (12:27 -0800)
committerVineet Gupta <vgupta@kernel.org>
Thu, 17 Aug 2023 19:40:26 +0000 (12:40 -0700)
commit1918693ff1891ba57af22dbbf511cf300158a975
treec3c498cb41a36f3315da04350fe6a631cc6b666e
parentc8ee610afe654da7276d4aa8ad2bb60ffff6ddfc
ARCv2: memset: don't prefetch for len == 0 which happens a alot

This avoids potential "bleeding" when size == 0 as cache line would be
dirtied (and possibly fetched from other cores) and due to the same
reaons more optimal too.

Signed-off-by: Vineet Gupta <vgupta@kernel.org>
arch/arc/lib/memset-archs.S