From patchwork Fri Aug 26 02:44:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 3702 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 D03A623E52 for ; Fri, 26 Aug 2011 02:39:03 +0000 (UTC) Received: from mail-gx0-f180.google.com (mail-gx0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 9850FA189E6 for ; Fri, 26 Aug 2011 02:39:03 +0000 (UTC) Received: by gxk10 with SMTP id 10so3348601gxk.11 for ; Thu, 25 Aug 2011 19:39:03 -0700 (PDT) Received: by 10.150.240.14 with SMTP id n14mr1705034ybh.41.1314326343097; Thu, 25 Aug 2011 19:39:03 -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.151.27.20 with SMTP id e20cs265329ybj; Thu, 25 Aug 2011 19:39:02 -0700 (PDT) Received: by 10.227.12.15 with SMTP id v15mr393058wbv.77.1314326342090; Thu, 25 Aug 2011 19:39:02 -0700 (PDT) Received: from DB3EHSOBE002.bigfish.com (db3ehsobe002.messaging.microsoft.com [213.199.154.140]) by mx.google.com with ESMTPS id p14si3116986wbh.107.2011.08.25.19.39.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 25 Aug 2011 19:39:02 -0700 (PDT) Received-SPF: neutral (google.com: 213.199.154.140 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) client-ip=213.199.154.140; Authentication-Results: mx.google.com; spf=neutral (google.com: 213.199.154.140 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) smtp.mail=jason.hui@linaro.org Received: from mail73-db3-R.bigfish.com (10.3.81.251) by DB3EHSOBE002.bigfish.com (10.3.84.22) with Microsoft SMTP Server id 14.1.225.22; Fri, 26 Aug 2011 02:39:01 +0000 Received: from mail73-db3 (localhost.localdomain [127.0.0.1]) by mail73-db3-R.bigfish.com (Postfix) with ESMTP id 0FB9017D81C2; Fri, 26 Aug 2011 02:39:01 +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 mail73-db3 (localhost.localdomain [127.0.0.1]) by mail73-db3 (MessageSwitch) id 1314326340775109_8553; Fri, 26 Aug 2011 02:39:00 +0000 (UTC) Received: from DB3EHSMHS005.bigfish.com (unknown [10.3.81.240]) by mail73-db3.bigfish.com (Postfix) with ESMTP id AE453B70051; Fri, 26 Aug 2011 02:39:00 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB3EHSMHS005.bigfish.com (10.3.87.105) with Microsoft SMTP Server (TLS) id 14.1.225.22; Fri, 26 Aug 2011 02:39:00 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-001.039d.mgd.msft.net (10.84.1.13) with Microsoft SMTP Server id 14.1.323.2; Thu, 25 Aug 2011 21:38:58 -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 p7Q2ct8u004483; Thu, 25 Aug 2011 21:38:56 -0500 (CDT) From: Jason Liu To: CC: , Subject: [[PATCH v2] ARM: i.MX: initialize l2x0 at early_init time Date: Fri, 26 Aug 2011 10:44:14 +0800 Message-ID: <1314326654-19128-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: arch_initcall(mxc_init_l2x0); [ 0.558755] console [ttymxc0] enabled After: early_initcall(mxc_init_l2x0); [ 0.555716] 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);