thermal: fix Mediatek thermal controller build
[linux/fpc-iii.git] / arch / x86 / include / asm / pat.h
blobca6c228d5e62837be88984b652bb436949295d03
1 #ifndef _ASM_X86_PAT_H
2 #define _ASM_X86_PAT_H
4 #include <linux/types.h>
5 #include <asm/pgtable_types.h>
7 bool pat_enabled(void);
8 extern void pat_init(void);
9 void pat_init_cache_modes(u64);
11 extern int reserve_memtype(u64 start, u64 end,
12 enum page_cache_mode req_pcm, enum page_cache_mode *ret_pcm);
13 extern int free_memtype(u64 start, u64 end);
15 extern int kernel_map_sync_memtype(u64 base, unsigned long size,
16 enum page_cache_mode pcm);
18 int io_reserve_memtype(resource_size_t start, resource_size_t end,
19 enum page_cache_mode *pcm);
21 void io_free_memtype(resource_size_t start, resource_size_t end);
23 #endif /* _ASM_X86_PAT_H */