Dear all:
      For standard Linux kernel, a driver normally need to implement
suspend/resume callbacks to be called when system suspend.
      For android kernel, a some driver may  also call
android_register_early_suspend to register some additional callbacks such
as:

559 <http://172.28.6.64/lxr/http/source/drivers/power/pxa_power.c#L559>
static android_early_suspend_t
<http://172.28.6.64/lxr/http/ident?i=android_early_suspend_t>
charge_android_suspend
<http://172.28.6.64/lxr/http/ident?i=charge_android_suspend> = {
560 <http://172.28.6.64/lxr/http/source/drivers/power/pxa_power.c#L560>
        .level = 5,
561 <http://172.28.6.64/lxr/http/source/drivers/power/pxa_power.c#L561>
        .suspend <http://172.28.6.64/lxr/http/ident?i=suspend> =
charge_android_suspend_handler
<http://172.28.6.64/lxr/http/ident?i=charge_android_suspend_handler>,
562 <http://172.28.6.64/lxr/http/source/drivers/power/pxa_power.c#L562>
        .resume <http://172.28.6.64/lxr/http/ident?i=resume> =
charge_android_resume_handler
<http://172.28.6.64/lxr/http/ident?i=charge_android_resume_handler>,
563 <http://172.28.6.64/lxr/http/source/drivers/power/pxa_power.c#L563> };

    also will be called when system suspend.

       My questions is why google decide to add such interface in addition
to starndard linux power framework.

       Thanks a lot for any hints or refernce.

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

Reply via email to