Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e5e6e9a authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 4a5f79e7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -86,6 +86,7 @@ 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);
		if (cache_is_vivt())
			cpu_clear(cpu, prev->cpu_vm_mask);
	}
}