Fastboot – deferred init

Document created by JayTu Employee on May 22, 2013
Version 1Show Document
  • View in full screen mode

When to improve kernel booting using hibernation [1], I found kernel initialized each component [2] took too much time.

One solution is to remove unnecessary module to save time. Another approach is to delay those modules until user space up. Then it won’t lost some features just because hopes to gain benefit on booting speed. This is very useful since hibernation’s trigger point is at the late_initcall [3]. Kernel doesn't need do much module initialize since hibernate will restore those module status later.


The detailed implementation is in the attached patch.


[1]: hibernation is a technique to store system memory content to storage. Then the device can be shutdown and read the content back after power on.

[2]: component means subsystem or driver.

[3]: Consult kernel/power/hibernate.c, software_resume


Outcomes