aboutsummaryrefslogtreecommitdiff
path: root/include/asm-x86/pat.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/pat.h')
-rw-r--r--include/asm-x86/pat.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/asm-x86/pat.h b/include/asm-x86/pat.h
index 8b822b5a178..7edc4730721 100644
--- a/include/asm-x86/pat.h
+++ b/include/asm-x86/pat.h
@@ -1,10 +1,15 @@
-
#ifndef _ASM_PAT_H
-#define _ASM_PAT_H 1
+#define _ASM_PAT_H
#include <linux/types.h>
-extern int pat_wc_enabled;
+#ifdef CONFIG_X86_PAT
+extern int pat_enabled;
+extern void validate_pat_support(struct cpuinfo_x86 *c);
+#else
+static const int pat_enabled;
+static inline void validate_pat_support(struct cpuinfo_x86 *c) { }
+#endif
extern void pat_init(void);
@@ -12,5 +17,6 @@ extern int reserve_memtype(u64 start, u64 end,
unsigned long req_type, unsigned long *ret_type);
extern int free_memtype(u64 start, u64 end);
-#endif
+extern void pat_disable(char *reason);
+#endif