diff options
Diffstat (limited to 'include/linux/highmem.h')
-rw-r--r-- | include/linux/highmem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 645d440807c2..bca8e2dfa355 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h | |||
@@ -27,6 +27,8 @@ static inline void flush_kernel_dcache_page(struct page *page) | |||
27 | unsigned int nr_free_highpages(void); | 27 | unsigned int nr_free_highpages(void); |
28 | extern unsigned long totalhigh_pages; | 28 | extern unsigned long totalhigh_pages; |
29 | 29 | ||
30 | void kmap_flush_unused(void); | ||
31 | |||
30 | #else /* CONFIG_HIGHMEM */ | 32 | #else /* CONFIG_HIGHMEM */ |
31 | 33 | ||
32 | static inline unsigned int nr_free_highpages(void) { return 0; } | 34 | static inline unsigned int nr_free_highpages(void) { return 0; } |
@@ -44,9 +46,13 @@ static inline void *kmap(struct page *page) | |||
44 | 46 | ||
45 | #define kmap_atomic(page, idx) \ | 47 | #define kmap_atomic(page, idx) \ |
46 | ({ pagefault_disable(); page_address(page); }) | 48 | ({ pagefault_disable(); page_address(page); }) |
49 | #define kmap_atomic_prot(page, idx, prot) kmap_atomic(page, idx) | ||
50 | |||
47 | #define kunmap_atomic(addr, idx) do { pagefault_enable(); } while (0) | 51 | #define kunmap_atomic(addr, idx) do { pagefault_enable(); } while (0) |
48 | #define kmap_atomic_pfn(pfn, idx) kmap_atomic(pfn_to_page(pfn), (idx)) | 52 | #define kmap_atomic_pfn(pfn, idx) kmap_atomic(pfn_to_page(pfn), (idx)) |
49 | #define kmap_atomic_to_page(ptr) virt_to_page(ptr) | 53 | #define kmap_atomic_to_page(ptr) virt_to_page(ptr) |
54 | |||
55 | #define kmap_flush_unused() do {} while(0) | ||
50 | #endif | 56 | #endif |
51 | 57 | ||
52 | #endif /* CONFIG_HIGHMEM */ | 58 | #endif /* CONFIG_HIGHMEM */ |