From patchwork Wed Aug 24 12:45:41 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 3657 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 01B6E23E54 for ; Wed, 24 Aug 2011 12:45:13 +0000 (UTC) Received: from mail-bw0-f52.google.com (mail-bw0-f52.google.com [209.85.214.52]) by fiordland.canonical.com (Postfix) with ESMTP id E4313A182F2 for ; Wed, 24 Aug 2011 12:45:12 +0000 (UTC) Received: by bkbzs2 with SMTP id zs2so1315306bkb.11 for ; Wed, 24 Aug 2011 05:45:12 -0700 (PDT) Received: by 10.204.133.17 with SMTP id d17mr2330750bkt.122.1314189912562; Wed, 24 Aug 2011 05:45:12 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.204.41.75 with SMTP id n11cs11608bke; Wed, 24 Aug 2011 05:43:44 -0700 (PDT) Received: by 10.229.62.103 with SMTP id w39mr3595798qch.59.1314189823373; Wed, 24 Aug 2011 05:43:43 -0700 (PDT) Received: from TX2EHSOBE004.bigfish.com (tx2ehsobe002.messaging.microsoft.com [65.55.88.12]) by mx.google.com with ESMTPS id l10si577782qct.81.2011.08.24.05.43.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Aug 2011 05:43:43 -0700 (PDT) Received-SPF: neutral (google.com: 65.55.88.12 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) client-ip=65.55.88.12; Authentication-Results: mx.google.com; spf=neutral (google.com: 65.55.88.12 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) smtp.mail=jason.hui@linaro.org Received: from mail64-tx2-R.bigfish.com (10.9.14.243) by TX2EHSOBE004.bigfish.com (10.9.40.24) with Microsoft SMTP Server id 14.1.225.22; Wed, 24 Aug 2011 12:43:41 +0000 Received: from mail64-tx2 (localhost.localdomain [127.0.0.1]) by mail64-tx2-R.bigfish.com (Postfix) with ESMTP id 214653EB81C7; Wed, 24 Aug 2011 12:43:42 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h62h) X-Spam-TCS-SCL: 1:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail64-tx2 (localhost.localdomain [127.0.0.1]) by mail64-tx2 (MessageSwitch) id 1314189790128883_5017; Wed, 24 Aug 2011 12:43:10 +0000 (UTC) Received: from TX2EHSMHS029.bigfish.com (unknown [10.9.14.254]) by mail64-tx2.bigfish.com (Postfix) with ESMTP id 2311031B00D7; Wed, 24 Aug 2011 12:40:45 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS029.bigfish.com (10.9.99.129) with Microsoft SMTP Server (TLS) id 14.1.225.22; Wed, 24 Aug 2011 12:40:41 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.323.2; Wed, 24 Aug 2011 07:40:28 -0500 Received: from r64343-desktop.ap.freescale.net (r64343-desktop.ap.freescale.net [10.192.242.36]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id p7OCeQbo004095; Wed, 24 Aug 2011 07:40:27 -0500 (CDT) From: Jason Liu To: CC: , Subject: [PATCH] ARM: i.MX: initialize l2x0 at early_init time Date: Wed, 24 Aug 2011 20:45:41 +0800 Message-ID: <1314189941-16406-1-git-send-email-jason.hui@linaro.org> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com This can make the l2 cache work at early time which will benefit the boot up time. Tested on i.mx31pdk board, test result shows: Before: [ 0.555716] console [ttymxc0] enabled After: [ 0.558755] console [ttymxc0] enabled Signed-off-by: Jason Liu Cc: Sascha Hauer --- arch/arm/mach-imx/cache-l2x0.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-imx/cache-l2x0.c b/arch/arm/mach-imx/cache-l2x0.c index 69d1322..e5538a4 100644 --- a/arch/arm/mach-imx/cache-l2x0.c +++ b/arch/arm/mach-imx/cache-l2x0.c @@ -53,4 +53,4 @@ static int mxc_init_l2x0(void) return 0; } -arch_initcall(mxc_init_l2x0); +early_initcall(mxc_init_l2x0);