xref: /linux/arch/arm/include/asm/patch.h (revision f3539c12d8196ce0a1993364d30b3a18908470d1)
1 #ifndef _ARM_KERNEL_PATCH_H
2 #define _ARM_KERNEL_PATCH_H
3 
4 void patch_text(void *addr, unsigned int insn);
5 void __patch_text_real(void *addr, unsigned int insn, bool remap);
6 
7 static inline void __patch_text(void *addr, unsigned int insn)
8 {
9 	__patch_text_real(addr, insn, true);
10 }
11 
12 static inline void __patch_text_early(void *addr, unsigned int insn)
13 {
14 	__patch_text_real(addr, insn, false);
15 }
16 
17 #endif
18