power: Make pm_system_resume private
This API is not intended to be public and it is called only from the idle thread. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
2e9b583da9
commit
9b246aba78
2 changed files with 21 additions and 21 deletions
|
@ -194,27 +194,6 @@ bool pm_constraint_get(enum pm_state state);
|
|||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Notify exit from kernel idling after PM operations
|
||||
*
|
||||
* This function would notify exit from kernel idling if a corresponding
|
||||
* pm_system_suspend() notification was handled and did not return
|
||||
* PM_STATE_ACTIVE.
|
||||
*
|
||||
* This function would be called from the ISR context of the event
|
||||
* that caused the exit from kernel idling. This will be called immediately
|
||||
* after interrupts are enabled. This is called to give a chance to do
|
||||
* any operations before the kernel would switch tasks or processes nested
|
||||
* interrupts. This is required for cpu low power states that would require
|
||||
* interrupts to be enabled while entering low power states. e.g. C1 in x86. In
|
||||
* those cases, the ISR would be invoked immediately after the event wakes up
|
||||
* the CPU, before code following the CPU wait, gets a chance to execute. This
|
||||
* can be ignored if no operation needs to be done at the wake event
|
||||
* notification. Alternatively pm_idle_exit_notification_disable() can
|
||||
* be called in pm_system_suspend to disable this notification.
|
||||
*/
|
||||
void pm_system_resume(void);
|
||||
|
||||
/**
|
||||
* @brief Do any SoC or architecture specific post ops after sleep state exits.
|
||||
*
|
||||
|
|
|
@ -226,6 +226,27 @@ void z_kernel_map_fixup(void);
|
|||
*/
|
||||
enum pm_state pm_system_suspend(int32_t ticks);
|
||||
|
||||
/**
|
||||
* Notify exit from kernel idling after PM operations
|
||||
*
|
||||
* This function would notify exit from kernel idling if a corresponding
|
||||
* pm_system_suspend() notification was handled and did not return
|
||||
* PM_STATE_ACTIVE.
|
||||
*
|
||||
* This function would be called from the ISR context of the event
|
||||
* that caused the exit from kernel idling. This will be called immediately
|
||||
* after interrupts are enabled. This is called to give a chance to do
|
||||
* any operations before the kernel would switch tasks or processes nested
|
||||
* interrupts. This is required for cpu low power states that would require
|
||||
* interrupts to be enabled while entering low power states. e.g. C1 in x86. In
|
||||
* those cases, the ISR would be invoked immediately after the event wakes up
|
||||
* the CPU, before code following the CPU wait, gets a chance to execute. This
|
||||
* can be ignored if no operation needs to be done at the wake event
|
||||
* notification. Alternatively pm_idle_exit_notification_disable() can
|
||||
* be called in pm_system_suspend to disable this notification.
|
||||
*/
|
||||
void pm_system_resume(void);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue