Skip to contentSkip to conversation

ARM: i.MX: initialize l2x0 at early_init time

PATCH New Jason Liu 2 participants 2 messages Aug 26, 2011

Subsystems (3)
lore
Share & tools
lore

Jason Liu

author
#0 lore raw

PATCH v2 1/1 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
Cc Sascha Hauer <[email protected]>
---
 arch/arm/mach-imx/cache-l2x0.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/cache-l2x0.c +1 -1
index 69d1322..e5538a4 100644
@@ -53,4 +53,4 @@ static int mxc_init_l2x0(void)
 
 	return 0;
 }
-arch_initcall(mxc_init_l2x0);
+early_initcall(mxc_init_l2x0);
Signature · 1 line
1.7.4.1
maintainer
#1 lore raw

PATCH v2 1/1 ARM: i.MX: initialize l2x0 at early_init time

Quoted 7 lines · Jason Liu

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);

Quoted 7 lines
[    0.558755] console [ttymxc0] enabled

After: early_initcall(mxc_init_l2x0);

[    0.555716] console [ttymxc0] enabled

Applied for next.

Sascha

Quoted 20 lines
Cc Sascha Hauer <[email protected]>
---
 arch/arm/mach-imx/cache-l2x0.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-imx/cache-l2x0.c +1 -1
index 69d1322..e5538a4 100644
@@ -53,4 +53,4 @@ static int mxc_init_l2x0(void)
 
 	return 0;
 }
-arch_initcall(mxc_init_l2x0);
+early_initcall(mxc_init_l2x0);
Signature · 1 line
1.7.4.1
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |