git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
[pandora-kernel.git]
/
arch
/
sparc
/
include
/
asm
/
mmu_context_64.h
diff --git
a/arch/sparc/include/asm/mmu_context_64.h
b/arch/sparc/include/asm/mmu_context_64.h
index
5693ab4
..
666a73f
100644
(file)
--- a/
arch/sparc/include/asm/mmu_context_64.h
+++ b/
arch/sparc/include/asm/mmu_context_64.h
@@
-121,8
+121,8
@@
static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, str
* local TLB.
*/
cpu = smp_processor_id();
* local TLB.
*/
cpu = smp_processor_id();
- if (!ctx_valid || !cpu
_isset(cpu, mm->cpu_vm_mask
)) {
- cpu
_set(cpu, mm->cpu_vm_mask
);
+ if (!ctx_valid || !cpu
mask_test_cpu(cpu, mm_cpumask(mm)
)) {
+ cpu
mask_set_cpu(cpu, mm_cpumask(mm)
);
__flush_tlb_mm(CTX_HWBITS(mm->context),
SECONDARY_CONTEXT);
}
__flush_tlb_mm(CTX_HWBITS(mm->context),
SECONDARY_CONTEXT);
}
@@
-141,8
+141,8
@@
static inline void activate_mm(struct mm_struct *active_mm, struct mm_struct *mm
if (!CTX_VALID(mm->context))
get_new_mmu_context(mm);
cpu = smp_processor_id();
if (!CTX_VALID(mm->context))
get_new_mmu_context(mm);
cpu = smp_processor_id();
- if (!cpu
_isset(cpu, mm->cpu_vm_mask
))
- cpu
_set(cpu, mm->cpu_vm_mask
);
+ if (!cpu
mask_test_cpu(cpu, mm_cpumask(mm)
))
+ cpu
mask_set_cpu(cpu, mm_cpumask(mm)
);
load_secondary_context(mm);
__flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT);
load_secondary_context(mm);
__flush_tlb_mm(CTX_HWBITS(mm->context), SECONDARY_CONTEXT);