Skip to content

Commit

Permalink
ARC: [mm] optimise VIPT dcache aliasing 2/x
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vineet Gupta committed Jun 22, 2013
1 parent 5971bc7 commit fedf5b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arc/mm/cache_arc700.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@ void copy_user_highpage(struct page *to, struct page *from,
*/
if (clean_src_k_mappings) {
__flush_dcache_page(kfrom, kfrom);
clear_bit(PG_arch_1, &from->flags);
} else {
set_bit(PG_arch_1, &from->flags);
}
Expand Down

0 comments on commit fedf5b9

Please sign in to comment.