diff mbox

sh: Enable the mmu in start_secondary()

Message ID a460f3c9762b32919a8886a12ecaf3347358234d.1269806815.git.matt@console-pimps.org (mailing list archive)
State Accepted
Commit 4bea3418c737891894b9d3d3e9f8bbd67d66fa38
Headers show

Commit Message

Matt Fleming March 28, 2010, 8:08 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/sh/kernel/smp.c b/arch/sh/kernel/smp.c
index e124cf7..002cc61 100644
--- a/arch/sh/kernel/smp.c
+++ b/arch/sh/kernel/smp.c
@@ -69,6 +69,7 @@  asmlinkage void __cpuinit start_secondary(void)
 	unsigned int cpu;
 	struct mm_struct *mm = &init_mm;
 
+	enable_mmu();
 	atomic_inc(&mm->mm_count);
 	atomic_inc(&mm->mm_users);
 	current->active_mm = mm;