summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/cpu.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-03-08 18:30:36 +0300
committerPeter Zijlstra <peterz@infradead.org>2022-03-15 12:32:39 +0300
commitaf22700390c2f1d92dadd3eedf2738525a3a2f3a (patch)
tree6535421fd452e6eb54f4cb2aef55782d7ee34949 /arch/x86/include/asm/cpu.h
parent991625f3dd2cbc4b787deb0213e2bcf8fa264b21 (diff)
downloadlinux-af22700390c2f1d92dadd3eedf2738525a3a2f3a.tar.xz
x86/ibt,kexec: Disable CET on kexec
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220308154318.641454603@infradead.org
Diffstat (limited to 'arch/x86/include/asm/cpu.h')
-rw-r--r--arch/x86/include/asm/cpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h
index a60025fdc3fc..86e5e4e26fcb 100644
--- a/arch/x86/include/asm/cpu.h
+++ b/arch/x86/include/asm/cpu.h
@@ -73,4 +73,7 @@ void init_ia32_feat_ctl(struct cpuinfo_x86 *c);
#else
static inline void init_ia32_feat_ctl(struct cpuinfo_x86 *c) {}
#endif
+
+extern __noendbr void cet_disable(void);
+
#endif /* _ASM_X86_CPU_H */