]> git.baikalelectronics.ru Git - kernel.git/commit
s390/jump_label: make use of HAVE_JUMP_LABEL_BATCH
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 4 Oct 2021 10:02:35 +0000 (12:02 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 11 Oct 2021 18:55:58 +0000 (20:55 +0200)
commit45daf96e5a1e2ae613ec19db13da0c7ff65b098b
tree0ccb570a3e849fbd3f4a11dd6b2f79ad9ef59508
parent60f26bfa2de11e54a0f2558a19afabdc8e1e1f98
s390/jump_label: make use of HAVE_JUMP_LABEL_BATCH

Specify HAVE_JUMP_LABEL_BATCH in header file. This allows to make use
of the arch_jump_label_transform_queue()/arch_jump_label_transform_apply()
mechanism.

However unlike on x86, which currently is the only user of this
mechanism, the to be patched instructions are still directly
modified. The only difference to before is that serialization is only
done after all instructions have been modified. This way the number of
serialization/synchronization events is reduced.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/jump_label.h
arch/s390/kernel/jump_label.c