Skip to content

Commit

Permalink
ARM: i.MX: initialize l2x0 at early_init time
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Liu authored and Sascha Hauer committed Aug 26, 2011
1 parent 2f81b4d commit e4bb936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/cache-l2x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ static int mxc_init_l2x0(void)

return 0;
}
arch_initcall(mxc_init_l2x0);
early_initcall(mxc_init_l2x0);

0 comments on commit e4bb936

Please sign in to comment.