projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jump label: Make dynamic no-op selection available outside of ftrace
[deliverable/linux.git]
/
arch
/
x86
/
include
/
asm
/
alternative.h
diff --git
a/arch/x86/include/asm/alternative.h
b/arch/x86/include/asm/alternative.h
index bc6abb7bc7ee3084aa8b5d87ae19244715469990..27a35b6891805111889c3bf7a339697b7951c954 100644
(file)
--- a/
arch/x86/include/asm/alternative.h
+++ b/
arch/x86/include/asm/alternative.h
@@
-180,4
+180,12
@@
static inline void apply_paravirt(struct paravirt_patch_site *start,
extern void *text_poke(void *addr, const void *opcode, size_t len);
extern void *text_poke_smp(void *addr, const void *opcode, size_t len);
extern void *text_poke(void *addr, const void *opcode, size_t len);
extern void *text_poke_smp(void *addr, const void *opcode, size_t len);
+#if defined(CONFIG_DYNAMIC_FTRACE)
+#define IDEAL_NOP_SIZE_5 5
+extern unsigned char ideal_nop5[IDEAL_NOP_SIZE_5];
+extern void arch_init_ideal_nop5(void);
+#else
+static inline void arch_init_ideal_nop5(void) {}
+#endif
+
#endif /* _ASM_X86_ALTERNATIVE_H */
#endif /* _ASM_X86_ALTERNATIVE_H */
This page took
0.035469 seconds
and
5
git commands to generate.