power:driver: move pm_auto_update to outer dir

Pm_auto_update maybe called by outter PM users

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin 2022-03-16 13:39:18 +08:00 committed by Xiang Xiao
parent ae21df2ed3
commit 79bcc662d9
2 changed files with 16 additions and 16 deletions

View File

@ -117,22 +117,6 @@ EXTERN struct pm_global_s g_pmglobals;
* Public Function Prototypes
****************************************************************************/
/****************************************************************************
* Name: pm_auto_updatestate
*
* Description:
* This function update the domain state and notify the power system.
*
* Input Parameters:
* domain - The PM domain to check
*
* Returned Value:
* None.
*
****************************************************************************/
void pm_auto_updatestate(int domain);
/****************************************************************************
* Name: pm_lock
*

View File

@ -598,6 +598,22 @@ int pm_changestate(int domain, enum pm_state_e newstate);
enum pm_state_e pm_querystate(int domain);
/****************************************************************************
* Name: pm_auto_updatestate
*
* Description:
* This function update the domain state and notify the power system.
*
* Input Parameters:
* domain - The PM domain to check
*
* Returned Value:
* None.
*
****************************************************************************/
void pm_auto_updatestate(int domain);
#undef EXTERN
#ifdef __cplusplus
}