projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: add new mmgrab() helper
[linux-block.git]
/
arch
/
sh
/
kernel
/
smp.c
diff --git
a/arch/sh/kernel/smp.c
b/arch/sh/kernel/smp.c
index 38e7860845db1e37f7519881337a5161f59afdfd..ee379c699c0884de7df5423392f0bcded3261817 100644
(file)
--- a/
arch/sh/kernel/smp.c
+++ b/
arch/sh/kernel/smp.c
@@
-178,7
+178,7
@@
asmlinkage void start_secondary(void)
struct mm_struct *mm = &init_mm;
enable_mmu();
-
atomic_inc(&mm->mm_count
);
+
mmgrab(mm
);
atomic_inc(&mm->mm_users);
current->active_mm = mm;
#ifdef CONFIG_MMU