Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
arch
/
x86
/
include
/
asm
/
alternative.h
diff --git
a/kernel/arch/x86/include/asm/alternative.h
b/kernel/arch/x86/include/asm/alternative.h
index
ba32af0
..
7bfc85b
100644
(file)
--- a/
kernel/arch/x86/include/asm/alternative.h
+++ b/
kernel/arch/x86/include/asm/alternative.h
@@
-52,6
+52,12
@@
struct alt_instr {
u8 padlen; /* length of build-time padding */
} __packed;
u8 padlen; /* length of build-time padding */
} __packed;
+/*
+ * Debug flag that can be tested to see whether alternative
+ * instructions were patched in already:
+ */
+extern int alternatives_patched;
+
extern void alternative_instructions(void);
extern void apply_alternatives(struct alt_instr *start, struct alt_instr *end);
extern void alternative_instructions(void);
extern void apply_alternatives(struct alt_instr *start, struct alt_instr *end);