Skip to content

Commit fedf5b9

Browse files
committed
ARC: [mm] optimise VIPT dcache aliasing 2/x
Non-congruent SRC page in copy_user_page() is dcache clean in the end - so record that fact, to avoid a subsequent extraneous flush. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 5971bc7 commit fedf5b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arc/mm/cache_arc700.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ void copy_user_highpage(struct page *to, struct page *from,
742742
*/
743743
if (clean_src_k_mappings) {
744744
__flush_dcache_page(kfrom, kfrom);
745+
clear_bit(PG_arch_1, &from->flags);
745746
} else {
746747
set_bit(PG_arch_1, &from->flags);
747748
}

0 commit comments

Comments
 (0)