|
Zephyr API Documentation 4.5.0-rc1
A Scalable Open Source RTOS
|
System Power Management Hooks. More...
Functions | |
| void | pm_state_set (enum pm_state state, uint8_t substate_id) |
| Put processor into a power state. | |
| void | pm_state_exit_post_ops (enum pm_state state, uint8_t substate_id) |
| Do any SoC or architecture specific post ops after sleep state exits. | |
System Power Management Hooks.
#include <zephyr/pm/pm.h>
Do any SoC or architecture specific post ops after sleep state exits.
This function is a place holder to do any operations that may be needed after a sleep state exits. By default, it is called after system-managed devices have been resumed, before PM exit notifications and system clock idle-exit accounting, and while interrupts are still locked.
With CONFIG_PM_EARLY_SYSTEM_TIMER_RESUME, this hook runs before system clock idle-exit accounting and system-managed device resume. Platforms enabling this experimental sequence must ensure this hook does not depend on devices having been resumed, for example when releasing I/O retention or isolation.
Implementations that do not select CONFIG_PM_STATE_SET_IRQ_UNLOCKED must use this hook for hardware resume operations only. They must not unmask interrupts or otherwise dispatch pending wake-source ISRs from this hook; the kernel idle path restores the original interrupt state after PM resume housekeeping is complete.
| state | Power state. |
| substate_id | Power substate id. |
#include <zephyr/pm/pm.h>
Put processor into a power state.
This function implements the SoC specific details necessary to put the processor into available power states. Implementations that select CONFIG_PM_STATE_SET_IRQ_UNLOCKED may still follow the legacy behavior of unmasking interrupts from this hook. Other implementations must not unmask interrupts or otherwise dispatch pending wake-source ISRs from this hook. Architecture helpers may adjust interrupt state immediately around the low-power instruction, but the kernel idle path restores the original interrupt state after PM resume housekeeping is complete.
| state | Power state. |
| substate_id | Power substate id. |