1 #include <linux/kernel.h>
2 #include <linux/jump_label.h>
8 static void __arch_jump_label_transform(struct jump_entry
*entry
,
9 enum jump_label_type type
,
12 void *addr
= (void *)entry
->code
;
15 if (type
== JUMP_LABEL_JMP
)
16 insn
= arm_gen_branch(entry
->code
, entry
->target
);
21 __patch_text_early(addr
, insn
);
23 patch_text(addr
, insn
);
26 void arch_jump_label_transform(struct jump_entry
*entry
,
27 enum jump_label_type type
)
29 __arch_jump_label_transform(entry
, type
, false);
32 void arch_jump_label_transform_static(struct jump_entry
*entry
,
33 enum jump_label_type type
)
35 __arch_jump_label_transform(entry
, type
, true);