]> git.baikalelectronics.ru Git - kernel.git/commit
s390: optimize memset implementation
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 4 Oct 2017 17:27:08 +0000 (19:27 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 9 Oct 2017 09:18:07 +0000 (11:18 +0200)
commitc6e37649c4c0f377ceed7aa9513b466c5088df16
treeb0c768f991a44cf09d660c322fec49ce36753742
parentd2c65525321087183b26fa7fedae4acefa64390f
s390: optimize memset implementation

Like for the memset16/32/64 variants avoid that subsequent mvc
instructions depend on each other since that might have negative
performance impacts.

This patch is currently hardly relevant since at least gcc 7.1
generates only inline memset code and not a single memset call.
However there is no reason to not provide an optimized version
just in case gcc generates memset calls again, like it did in
the past.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/lib/mem.S