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
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
include
/
asm-arm
/
mmu_context.h
diff --git
a/include/asm-arm/mmu_context.h
b/include/asm-arm/mmu_context.h
index
4af9c41
..
a4cb792
100644
(file)
--- a/
include/asm-arm/mmu_context.h
+++ b/
include/asm-arm/mmu_context.h
@@
-80,17
+80,18
@@
static inline void
switch_mm(struct mm_struct *prev, struct mm_struct *next,
struct task_struct *tsk)
{
switch_mm(struct mm_struct *prev, struct mm_struct *next,
struct task_struct *tsk)
{
- unsigned int cpu = smp_processor_id();
-
if (prev != next) {
if (prev != next) {
- cpu_set(cpu, next->cpu_vm_mask);
check_context(next);
cpu_switch_mm(next->pgd, next);
check_context(next);
cpu_switch_mm(next->pgd, next);
- cpu_clear(cpu, prev->cpu_vm_mask);
}
}
#define deactivate_mm(tsk,mm) do { } while (0)
}
}
#define deactivate_mm(tsk,mm) do { } while (0)
-#define activate_mm(prev,next) switch_mm(prev, next, NULL)
+
+static inline void activate_mm(struct mm_struct *prev, struct mm_struct *next)
+{
+ check_context(next);
+ cpu_switch_mm(next->pgd, next);
+}
#endif
#endif