From patchwork Sun Mar 28 20:08:25 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Fleming X-Patchwork-Id: 88813 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2SK8WmC015830 for ; Sun, 28 Mar 2010 20:08:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755156Ab0C1UIc (ORCPT ); Sun, 28 Mar 2010 16:08:32 -0400 Received: from 124x34x33x190.ap124.ftth.ucom.ne.jp ([124.34.33.190]:52167 "EHLO master.linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755146Ab0C1UIc (ORCPT ); Sun, 28 Mar 2010 16:08:32 -0400 Received: from localhost (unknown [127.0.0.1]) by master.linux-sh.org (Postfix) with ESMTP id 565186375A; Sun, 28 Mar 2010 20:07:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at linux-sh.org Received: from master.linux-sh.org ([127.0.0.1]) by localhost (master.linux-sh.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a+MDfICS94Ad; Mon, 29 Mar 2010 05:07:13 +0900 (JST) Received: from localhost (cpc5-brad6-0-0-cust25.barn.cable.virginmedia.com [82.38.64.26]) by master.linux-sh.org (Postfix) with ESMTP id 6232363758; Mon, 29 Mar 2010 05:07:12 +0900 (JST) From: Matt Fleming To: linux-sh@vger.kernel.org Cc: Paul Mundt , Matt Fleming Subject: [PATCH] sh: Enable the mmu in start_secondary() Date: Sun, 28 Mar 2010 21:08:25 +0100 Message-Id: X-Mailer: git-send-email 1.6.4.rc0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 28 Mar 2010 20:08:33 +0000 (UTC) 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;