Skip to content

Commit

Permalink
[ARM SMP] Do not clear cpu_vm_mask for VIPT caches
Browse files Browse the repository at this point in the history
Since we do not invalidate TLBs/caches on MM switches, we should not
clear the cpu_vm_mask for the CPU.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King authored and Russell King committed Nov 3, 2005
1 parent 4a5f79e commit 7e5e6e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/asm-arm/mmu_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 7e5e6e9

Please sign in to comment.