]> git.baikalelectronics.ru Git - kernel.git/commit
s390/jump_label: replace stop_machine with smp_call_function
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 17 May 2019 10:50:43 +0000 (12:50 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 4 Jun 2019 13:03:12 +0000 (15:03 +0200)
commit35c8abeabc18486f8d76f6febb231d27e2ca3215
tree6799167289a134b5c6f7c3d4cf4e1e52165f46b4
parent31750888ad4ce9d2a30f744c4c2ab30aee07f569
s390/jump_label: replace stop_machine with smp_call_function

The use of stop_machine to replace the mask bits of the jump label branch
is a very heavy-weight operation. This is in fact not necessary, the
mask of the branch can simply be updated, followed by a signal processor
to all the other CPUs to force them to pick up the modified instruction.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
[heiko.carstens@de.ibm.com]: Change jump_label_make_nop() so we get
                             brcl 0,offset instead of brcl 0,0. This
                             makes sure that only the mask part of the
                             instruction gets changed when updated.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/kernel/jump_label.c
arch/s390/mm/maccess.c