This commit add pm process for state transition. It limit the idle thread to only make board sleep, while other pm state transition is done by software timer which follow pm_process. The pm_suspend and pm_resume will now suspend / resume pm_process, to work in coordination with the PM software timer. This commit also add the functionality of LCD dimming and it is done with pm_changestate. The pm software timer is auto suspending, it means they stop the pm transition whenever low power saving state transition not needed.
This commit add pm process for state transition. It limit the idle thread to only make board sleep, while other pm state transition is done by software timer which follow pm_process. The pm_suspend and pm_resume will now suspend / resume pm_process, to work in coordination with the PM software timer. This commit also add the functionality of LCD dimming and it is done with pm_changestate. The pm software timer is auto suspending, it means they stop the pm transition whenever low power saving state transition not needed.