Skip to content

Commit

Permalink
arm64: Defer dcache flush in __cpu_copy_user_page
Browse files Browse the repository at this point in the history
Defer dcache flushing to __sync_icache_dcache by calling
flush_dcache_page which clears PG_dcache_clean flag.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Ashok Kumar <ashoks@broadcom.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Ashok Kumar authored and Will Deacon committed Dec 17, 2015
1 parent 971c67c commit e6b1185
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/arm64/mm/copypage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e6b1185

Please sign in to comment.