浏览代码

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>
Vineet Gupta 12 年之前
父节点
当前提交
fedf5b9baf
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/arc/mm/cache_arc700.c

+ 1 - 0
arch/arc/mm/cache_arc700.c

@@ -742,6 +742,7 @@ void copy_user_highpage(struct page *to, struct page *from,
 	 */
 	 */
 	if (clean_src_k_mappings) {
 	if (clean_src_k_mappings) {
 		__flush_dcache_page(kfrom, kfrom);
 		__flush_dcache_page(kfrom, kfrom);
+		clear_bit(PG_arch_1, &from->flags);
 	} else {
 	} else {
 		set_bit(PG_arch_1, &from->flags);
 		set_bit(PG_arch_1, &from->flags);
 	}
 	}