summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-10-01 14:15:56 +0200
committerVasily Gorbik <gor@linux.ibm.com>2021-10-11 20:55:58 +0200
commit1c27dfb24e3b2a026488aa51e9991e27a1d94164 (patch)
tree52f295dd95764c0e311cc85669a7f150cd79bb56 /arch/s390
parents390: introduce text_poke_sync() (diff)
downloadlinux-1c27dfb24e3b2a026488aa51e9991e27a1d94164.tar.xz
linux-1c27dfb24e3b2a026488aa51e9991e27a1d94164.zip
s390/jump_label: use text_poke_sync()
Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kernel/jump_label.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/s390/kernel/jump_label.c b/arch/s390/kernel/jump_label.c
index 9156653b56f6..1e245da82197 100644
--- a/arch/s390/kernel/jump_label.c
+++ b/arch/s390/kernel/jump_label.c
@@ -6,8 +6,8 @@
* Author(s): Jan Glauber <jang@linux.vnet.ibm.com>
*/
#include <linux/uaccess.h>
-#include <linux/stop_machine.h>
#include <linux/jump_label.h>
+#include <asm/text-patching.h>
#include <asm/ipl.h>
struct insn {
@@ -72,15 +72,11 @@ static void __jump_label_transform(struct jump_entry *entry,
s390_kernel_write(code, &new, sizeof(new));
}
-static void __jump_label_sync(void *dummy)
-{
-}
-
void arch_jump_label_transform(struct jump_entry *entry,
enum jump_label_type type)
{
__jump_label_transform(entry, type, 0);
- smp_call_function(__jump_label_sync, NULL, 1);
+ text_poke_sync();
}
void arch_jump_label_transform_static(struct jump_entry *entry,