Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af8a4610 authored by Laura Abbott's avatar Laura Abbott Committed by Gerrit - the friendly Code Review server
Browse files

mm: highmem: Add definitions for kmap_atomic_flush_unused



kmap_flush_unused does not flush kmap_atomic mappings which
are handled separately. Architectures may have use cases to require
these to be flushed. Add an option to let architectures define
kmap_atomic flushing to get rid of extra mappings.

Change-Id: I5a338ed9e215f0f0ad3ab58a3066d2f4c8ce3ba7
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 3295850b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -39,6 +39,12 @@ extern unsigned long totalhigh_pages;

void kmap_flush_unused(void);

#ifdef CONFIG_ARCH_WANT_KMAP_ATOMIC_FLUSH
void kmap_atomic_flush_unused(void);
#else
static inline void kmap_atomic_flush_unused(void) { }
#endif

struct page *kmap_to_page(void *addr);

#else /* CONFIG_HIGHMEM */
@@ -80,6 +86,7 @@ static inline void __kunmap_atomic(void *addr)
#define kmap_atomic_pfn(pfn)	kmap_atomic(pfn_to_page(pfn))

#define kmap_flush_unused()	do {} while(0)
#define kmap_atomic_flush_unused()	do {} while (0)
#endif

#endif /* CONFIG_HIGHMEM */