From: Haavard Skinnemoen Date: Thu, 1 Mar 2007 15:32:31 +0000 (+0100) Subject: [AVR32] Don't use kmap() in flush_icache_page() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=28c1d39db83357bad55e3482fe09386429728ded;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [AVR32] Don't use kmap() in flush_icache_page() flush_icache_page() can be called from atomic context, so we can't use kmap(). Use page_address() instead. Signed-off-by: Haavard Skinnemoen --- diff --git a/arch/avr32/mm/cache.c b/arch/avr32/mm/cache.c index fb13f72e9a02..8f7b1c3cd0f9 100644 --- a/arch/avr32/mm/cache.c +++ b/arch/avr32/mm/cache.c @@ -121,9 +121,8 @@ void flush_icache_range(unsigned long start, unsigned long end) void flush_icache_page(struct vm_area_struct *vma, struct page *page) { if (vma->vm_flags & VM_EXEC) { - void *v = kmap(page); + void *v = page_address(page); __flush_icache_range((unsigned long)v, (unsigned long)v + PAGE_SIZE); - kunmap(v); } }