tree ffcdb1fe79171bb0e6e02c0c197541d1b73ad5b0
parent 41c018b7ecb60b1c2c4d5dee0cd37d32a94c45af
author Russell King <[EMAIL PROTECTED]> Thu, 28 Jul 2005 20:32:47 +0100
committer Russell King <[EMAIL PROTECTED]> Thu, 28 Jul 2005 20:32:47 +0100

[ARM SMP] Ensure secondary CPUs have a clean TLB

Since ARMv6 CPUs will not flush the TLB on context switches, it is
possible that we may end up with some global TLB entries remaining
present, eventually upsetting userspace.  Explicitly flush the
entire TLB on secondary CPUs as they startup, after we have switched
to the init_mm page tables.

Signed-off-by: Russell King <[EMAIL PROTECTED]>

 arch/arm/kernel/smp.c |    1 +
 1 files changed, 1 insertion(+)

diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -176,6 +176,7 @@ asmlinkage void __cpuinit secondary_star
        cpu_set(cpu, mm->cpu_vm_mask);
        cpu_switch_mm(mm->pgd, mm);
        enter_lazy_tlb(mm, current);
+       local_flush_tlb_all();
 
        cpu_init();
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to