s390/maccess: improve s390_kernel_write()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 13 Mar 2015 12:13:36 +0000 (13:13 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 25 Mar 2015 10:49:44 +0000 (11:49 +0100)
commit3c1a3bcea945f9d59ab1fe3d319c67c0ff56100f
tree9e8e7c58195b04850ccd5e87e48c5930b137ebb3
parent8a5d8473dd7e2b0bc2864e34bd6836b520589fa1
s390/maccess: improve s390_kernel_write()

Use the sturg instruction instead of the stura instruction. This allows to
modify up to eight bytes in a row instead of only four.

For function tracer enabling and disabling this reduces the time needed to
modify the text sections by 50%, since for each mcount call site six bytes
need to be changed.

Also remove the EXTABLE entries, since calls to this function are not
supposed to fail.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/maccess.c