提交 7e5e6e9a 编写于 作者: R Russell King 提交者: Russell King

[ARM SMP] Do not clear cpu_vm_mask for VIPT caches

Since we do not invalidate TLBs/caches on MM switches, we should not
clear the cpu_vm_mask for the CPU.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 4a5f79e7
......@@ -86,7 +86,8 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
cpu_set(cpu, next->cpu_vm_mask);
check_context(next);
cpu_switch_mm(next->pgd, next);
cpu_clear(cpu, prev->cpu_vm_mask);
if (cache_is_vivt())
cpu_clear(cpu, prev->cpu_vm_mask);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册