power: s/POWER_STATE_ACTIVE/PM_STATE_ACTIVE
Fix some references to old power state names. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
5c5172ddae
commit
b5e1336e83
3 changed files with 4 additions and 4 deletions
|
@ -228,7 +228,7 @@ void pm_system_resume_from_deep_sleep(void);
|
||||||
*
|
*
|
||||||
* This function would notify exit from kernel idling if a corresponding
|
* This function would notify exit from kernel idling if a corresponding
|
||||||
* pm_system_suspend() notification was handled and did not return
|
* pm_system_suspend() notification was handled and did not return
|
||||||
* POWER_STATE_ACTIVE.
|
* PM_STATE_ACTIVE.
|
||||||
*
|
*
|
||||||
* This function would be called from the ISR context of the event
|
* This function would be called from the ISR context of the event
|
||||||
* that caused the exit from kernel idling. This will be called immediately
|
* that caused the exit from kernel idling. This will be called immediately
|
||||||
|
|
|
@ -56,7 +56,7 @@ static void pm_save_idle(void)
|
||||||
/*
|
/*
|
||||||
* Call the suspend hook function of the soc interface to allow
|
* Call the suspend hook function of the soc interface to allow
|
||||||
* entry into a low power state. The function returns
|
* entry into a low power state. The function returns
|
||||||
* POWER_STATE_ACTIVE if low power state was not entered, in which
|
* PM_STATE_ACTIVE if low power state was not entered, in which
|
||||||
* case, kernel does normal idle processing.
|
* case, kernel does normal idle processing.
|
||||||
*
|
*
|
||||||
* This function is entered with interrupts disabled. If a low power
|
* This function is entered with interrupts disabled. If a low power
|
||||||
|
|
|
@ -45,7 +45,7 @@ __weak void pm_power_state_set(struct pm_state_info info)
|
||||||
zassert_false(device_power_state == DEVICE_PM_ACTIVE_STATE, NULL);
|
zassert_false(device_power_state == DEVICE_PM_ACTIVE_STATE, NULL);
|
||||||
|
|
||||||
/* this function is called when system entering low power state, so
|
/* this function is called when system entering low power state, so
|
||||||
* parameter state should not be POWER_STATE_ACTIVE
|
* parameter state should not be PM_STATE_ACTIVE
|
||||||
*/
|
*/
|
||||||
zassert_false(info.state == PM_STATE_ACTIVE,
|
zassert_false(info.state == PM_STATE_ACTIVE,
|
||||||
"Entering low power state with a wrong parameter");
|
"Entering low power state with a wrong parameter");
|
||||||
|
@ -131,7 +131,7 @@ static void notify_pm_state_exit(enum pm_state state)
|
||||||
* - The idle routine provide a timeout parameter to the suspend routine
|
* - The idle routine provide a timeout parameter to the suspend routine
|
||||||
* indicating the amount of time guaranteed to expire before the next
|
* indicating the amount of time guaranteed to expire before the next
|
||||||
* timeout, pm_policy_next_state() handle this parameter.
|
* timeout, pm_policy_next_state() handle this parameter.
|
||||||
* - In this case, pm_policy_next_sate() return POWER_STATE_ACTIVE,
|
* - In this case, pm_policy_next_sate() return PM_STATE_ACTIVE,
|
||||||
* so there is no low power operation happen.
|
* so there is no low power operation happen.
|
||||||
*
|
*
|
||||||
* @see pm_policy_next_state()
|
* @see pm_policy_next_state()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue