projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SPARC64]: dr-cpu unconfigure support.
[deliverable/linux.git]
/
include
/
asm-sparc64
/
mmu_context.h
diff --git
a/include/asm-sparc64/mmu_context.h
b/include/asm-sparc64/mmu_context.h
index 8d129032013e9b3e8fcf35a040f5438dab02959a..9fc225ed5500d20c5372653389d8783ffc49ef4b 100644
(file)
--- a/
include/asm-sparc64/mmu_context.h
+++ b/
include/asm-sparc64/mmu_context.h
@@
-76,6
+76,9
@@
static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, str
unsigned long ctx_valid, flags;
int cpu;
+ if (unlikely(mm == &init_mm))
+ return;
+
spin_lock_irqsave(&mm->context.lock, flags);
ctx_valid = CTX_VALID(mm->context);
if (!ctx_valid)
This page took
0.02328 seconds
and
5
git commands to generate.