| Submitter | Jason Liu |
|---|---|
| Date | Aug. 26, 2011, 2:44 a.m. |
| Message ID | <1314326654-19128-1-git-send-email-jason.hui@linaro.org> |
| Download | mbox | patch |
| Permalink | /patch/111700/ |
| State | New |
| Headers | show |
Comments
On Fri, Aug 26, 2011 at 10:44:14AM +0800, Jason Liu wrote: > 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> Applied for next. Sascha > Cc: Sascha Hauer <s.hauer@pengutronix.de> > --- > 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); > -- > 1.7.4.1 > > >
Patch
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);
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> --- arch/arm/mach-imx/cache-l2x0.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)