1 /* Public domain. */ 2 3 #ifndef _LINUXKPI_ASM_MEMTYPE_H_ 4 #define _LINUXKPI_ASM_MEMTYPE_H_ 5 6 #if defined(__amd64__) || defined(__i386__) 7 8 #include <asm/cpufeature.h> 9 10 static inline bool pat_enabled(void)11pat_enabled(void) 12 { 13 return (boot_cpu_has(X86_FEATURE_PAT)); 14 } 15 16 #endif 17 18 #endif /* _LINUXKPI_ASM_MEMTYPE_H_ */ 19