power: change pm_stay_timeout to pm_staytimout

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2022-06-16 18:18:07 +08:00 committed by Xiang Xiao
parent b34925e6eb
commit f606689715
4 changed files with 7 additions and 7 deletions

View File

@ -52,13 +52,13 @@ config PM_GOVERNOR_EXPLICIT_RELAX
can hold off power levels using pm_stay() (via boardctl).
This option will initialize all run levels as if
pm_stay/pm_stay_timeout() were to be called once for each.
pm_stay/pm_staytimeout() were to be called once for each.
if set to -1, that means pm_stay(), so that your application
needs to call pm_relax() (via boardctl()) for every run-level you
wish to allow to enter.
if set to timeout (unit: ms), that means pm_stay_timeout(ms).
if set to timeout (unit: ms), that means pm_staytimeout(ms).
pm_relax() will be auto called after timeout.
if PM_GOVERNOR_ACTIVITY

View File

@ -185,7 +185,7 @@ void pm_relax(int domain, enum pm_state_e state)
}
/****************************************************************************
* Name: pm_stay_timeout
* Name: pm_staytimeout
*
* Description:
* This function is called by a device driver to indicate that it is
@ -206,7 +206,7 @@ void pm_relax(int domain, enum pm_state_e state)
*
****************************************************************************/
void pm_stay_timeout(int domain, enum pm_state_e state, int ms)
void pm_staytimeout(int domain, enum pm_state_e state, int ms)
{
FAR struct pm_domain_s *pdom;
FAR struct wdog_s *wdog;

View File

@ -101,7 +101,7 @@ int pm_set_governor(int domain, FAR const struct pm_governor_s *gov)
#if CONFIG_PM_GOVERNOR_EXPLICIT_RELAX < 0
pm_stay(dom, state);
#else
pm_stay_timeout(dom, state, CONFIG_PM_GOVERNOR_EXPLICIT_RELAX);
pm_staytimeout(dom, state, CONFIG_PM_GOVERNOR_EXPLICIT_RELAX);
#endif
}
}

View File

@ -500,7 +500,7 @@ void pm_stay(int domain, enum pm_state_e state);
void pm_relax(int domain, enum pm_state_e state);
/****************************************************************************
* Name: pm_stay_timeout
* Name: pm_staytimeout
*
* Description:
* This function is called by a device driver to indicate that it is
@ -521,7 +521,7 @@ void pm_relax(int domain, enum pm_state_e state);
*
****************************************************************************/
void pm_stay_timeout(int domain, enum pm_state_e state, int ms);
void pm_staytimeout(int domain, enum pm_state_e state, int ms);
/****************************************************************************
* Name: pm_staycount