| #include <linux/kernel.h> |
| #include <linux/jump_label.h> |
| static void __arch_jump_label_transform(struct jump_entry *entry, |
| enum jump_label_type type, |
| void *addr = (void *)entry->code; |
| if (type == JUMP_LABEL_ENABLE) |
| insn = arm_gen_branch(entry->code, entry->target); |
| __patch_text(addr, insn); |
| void arch_jump_label_transform(struct jump_entry *entry, |
| enum jump_label_type type) |
| __arch_jump_label_transform(entry, type, false); |
| void arch_jump_label_transform_static(struct jump_entry *entry, |
| enum jump_label_type type) |
| __arch_jump_label_transform(entry, type, true); |