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

Commit e6b1185f authored by Ashok Kumar's avatar Ashok Kumar Committed by Will Deacon
Browse files

arm64: Defer dcache flush in __cpu_copy_user_page



Defer dcache flushing to __sync_icache_dcache by calling
flush_dcache_page which clears PG_dcache_clean flag.

Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: default avatarAshok Kumar <ashoks@broadcom.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 971c67ce
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -24,8 +24,9 @@

void __cpu_copy_user_page(void *kto, const void *kfrom, unsigned long vaddr)
{
	struct page *page = virt_to_page(kto);
	copy_page(kto, kfrom);
	__flush_dcache_area(kto, PAGE_SIZE);
	flush_dcache_page(page);
}
EXPORT_SYMBOL_GPL(__cpu_copy_user_page);