power: change pm_stay_timeout to pm_staytimout
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
b34925e6eb
commit
f606689715
@ -52,13 +52,13 @@ config PM_GOVERNOR_EXPLICIT_RELAX
|
|||||||
can hold off power levels using pm_stay() (via boardctl).
|
can hold off power levels using pm_stay() (via boardctl).
|
||||||
|
|
||||||
This option will initialize all run levels as if
|
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
|
if set to -1, that means pm_stay(), so that your application
|
||||||
needs to call pm_relax() (via boardctl()) for every run-level you
|
needs to call pm_relax() (via boardctl()) for every run-level you
|
||||||
wish to allow to enter.
|
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.
|
pm_relax() will be auto called after timeout.
|
||||||
|
|
||||||
if PM_GOVERNOR_ACTIVITY
|
if PM_GOVERNOR_ACTIVITY
|
||||||
|
@ -185,7 +185,7 @@ void pm_relax(int domain, enum pm_state_e state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: pm_stay_timeout
|
* Name: pm_staytimeout
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* This function is called by a device driver to indicate that it is
|
* 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 pm_domain_s *pdom;
|
||||||
FAR struct wdog_s *wdog;
|
FAR struct wdog_s *wdog;
|
||||||
|
@ -101,7 +101,7 @@ int pm_set_governor(int domain, FAR const struct pm_governor_s *gov)
|
|||||||
#if CONFIG_PM_GOVERNOR_EXPLICIT_RELAX < 0
|
#if CONFIG_PM_GOVERNOR_EXPLICIT_RELAX < 0
|
||||||
pm_stay(dom, state);
|
pm_stay(dom, state);
|
||||||
#else
|
#else
|
||||||
pm_stay_timeout(dom, state, CONFIG_PM_GOVERNOR_EXPLICIT_RELAX);
|
pm_staytimeout(dom, state, CONFIG_PM_GOVERNOR_EXPLICIT_RELAX);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -500,7 +500,7 @@ void pm_stay(int domain, enum pm_state_e state);
|
|||||||
void pm_relax(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:
|
* Description:
|
||||||
* This function is called by a device driver to indicate that it is
|
* 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
|
* Name: pm_staycount
|
||||||
|
Loading…
Reference in New Issue
Block a user