From: Jason Liu Date: Fri, 26 Aug 2011 02:44:14 +0000 (+0800) Subject: ARM: i.MX: initialize l2x0 at early_init time X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e4bb9361def1b1af55874859d8981525ff2b6977;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ARM: i.MX: initialize l2x0 at early_init time 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 Signed-off-by: Sascha Hauer --- diff --git a/arch/arm/mach-imx/cache-l2x0.c b/arch/arm/mach-imx/cache-l2x0.c index 69d1322add3c..e5538a4d7f23 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);