projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a5f79e
)
[ARM SMP] Do not clear cpu_vm_mask for VIPT caches
author
Russell King
<rmk@dyn-67.arm.linux.org.uk>
Thu, 3 Nov 2005 20:32:45 +0000
(20:32 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Thu, 3 Nov 2005 20:32:45 +0000
(20:32 +0000)
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>
include/asm-arm/mmu_context.h
patch
|
blob
|
history
diff --git
a/include/asm-arm/mmu_context.h
b/include/asm-arm/mmu_context.h
index 4af9c411c617933438af278113f042bf15113cd9..57b8def83d4145d152eee6e8dabe71195c2978f5 100644
(file)
--- a/
include/asm-arm/mmu_context.h
+++ b/
include/asm-arm/mmu_context.h
@@
-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);
}
}