ARM: i.MX: initialize l2x0 at early_init time
authorJason Liu <jason.hui@linaro.org>
Fri, 26 Aug 2011 02:44:14 +0000 (10:44 +0800)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 26 Aug 2011 06:52:36 +0000 (08:52 +0200)
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 <jason.hui@linaro.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/cache-l2x0.c

index 69d1322..e5538a4 100644 (file)
@@ -53,4 +53,4 @@ static int mxc_init_l2x0(void)
 
        return 0;
 }
-arch_initcall(mxc_init_l2x0);
+early_initcall(mxc_init_l2x0);