summaryrefslogtreecommitdiff
path: root/include/linux/pti.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pti.h')
-rw-r--r--include/linux/pti.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/pti.h b/include/linux/pti.h
new file mode 100644
index 000000000000..0174883a935a
--- /dev/null
+++ b/include/linux/pti.h
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef _INCLUDE_PTI_H
+#define _INCLUDE_PTI_H
+
+#ifdef CONFIG_PAGE_TABLE_ISOLATION
+#include <asm/pti.h>
+#else
+static inline void pti_init(void) { }
+#endif
+
+#endif