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

Commit c9334f60 authored by James Bottomley's avatar James Bottomley Committed by James Bottomley
Browse files

sh: add mm API for DMA to vmalloc/vmap areas

parent 252a9aff
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -63,6 +63,14 @@ static inline void flush_anon_page(struct vm_area_struct *vma,
	if (boot_cpu_data.dcache.n_aliases && PageAnon(page))
	if (boot_cpu_data.dcache.n_aliases && PageAnon(page))
		__flush_anon_page(page, vmaddr);
		__flush_anon_page(page, vmaddr);
}
}
static inline void flush_kernel_vmap_range(void *addr, int size)
{
	__flush_wback_region(addr, size);
}
static inline void invalidate_kernel_vmap_range(void *addr, int size)
{
	__flush_invalidate_region(addr, size);
}


#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE
static inline void flush_kernel_dcache_page(struct page *page)
static inline void flush_kernel_dcache_page(struct page *page)