On Wed, Jun 16, 2010 at 8:21 AM, Gary <gary01.y...@gmail.com> wrote:
> Hi, all
>
> Now my device needs 2 minutes to boot up.
> But I found that the booting time will be reduced to 1 minute after I
> add just a printk(..) invoking as shown below.
> Even though the booting time has been reduced by adding one line of
> routine,but I have not found the real reason why the device needs 2
> minutes to boot up.
>
> Do you have any ideas or suggestions on my question?
>
> /linux2.6.29/init/main.c
>
> static void __init do_initcalls(void)
> {
>        initcall_t *call;
>        for (call = __early_initcall_end; call < __initcall_end; call++){
>                do_one_initcall(*call);
> printk("yangwd, do it,0x%x\r\n",call); // just add this line of
> routine

Have you tried enabling the debugging for init calls so you can see where
the time is spent during booting?  The documentation in the kernel shows
how to do this and how to generate pretty graphs showing what is going
on as well with the output.

good luck,

greg k-h

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to