git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 2.6.10-1.12-FC2
[linux-2.6.git]
/
include
/
asm-mips
/
mmu_context.h
diff --git
a/include/asm-mips/mmu_context.h
b/include/asm-mips/mmu_context.h
index
dd7591b
..
9dbf344
100644
(file)
--- a/
include/asm-mips/mmu_context.h
+++ b/
include/asm-mips/mmu_context.h
@@
-126,8
+126,8
@@
static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,
* Mark current->active_mm as not "active" anymore.
* We don't want to mislead possible IPI tlb flush routines.
*/
* Mark current->active_mm as not "active" anymore.
* We don't want to mislead possible IPI tlb flush routines.
*/
- c
lear_bit(cpu, &
prev->cpu_vm_mask);
-
set_bit(cpu, &
next->cpu_vm_mask);
+ c
pu_clear(cpu,
prev->cpu_vm_mask);
+
cpu_set(cpu,
next->cpu_vm_mask);
local_irq_restore(flags);
}
local_irq_restore(flags);
}
@@
-161,8
+161,8
@@
activate_mm(struct mm_struct *prev, struct mm_struct *next)
TLBMISS_HANDLER_SETUP_PGD(next->pgd);
/* mark mmu ownership change */
TLBMISS_HANDLER_SETUP_PGD(next->pgd);
/* mark mmu ownership change */
- c
lear_bit(cpu, &
prev->cpu_vm_mask);
-
set_bit(cpu, &
next->cpu_vm_mask);
+ c
pu_clear(cpu,
prev->cpu_vm_mask);
+
cpu_set(cpu,
next->cpu_vm_mask);
local_irq_restore(flags);
}
local_irq_restore(flags);
}
@@
-178,7
+178,7
@@
drop_mmu_context(struct mm_struct *mm, unsigned cpu)
local_irq_save(flags);
local_irq_save(flags);
- if (
test_bit(cpu, &
mm->cpu_vm_mask)) {
+ if (
cpu_isset(cpu,
mm->cpu_vm_mask)) {
get_new_mmu_context(mm, cpu);
write_c0_entryhi(cpu_asid(cpu, mm));
} else {
get_new_mmu_context(mm, cpu);
write_c0_entryhi(cpu_asid(cpu, mm));
} else {