@@ -103,10 +103,10 @@ Suspend Hook function
103103
104104.. code-block :: c
105105
106- int sys_soc_suspend (s32_t ticks);
106+ int sys_suspend (s32_t ticks);
107107
108108 When the kernel is about to go idle, the power management subsystem calls the
109- :code: `sys_soc_suspend () ` function, notifying the SOC interface that the kernel
109+ :code: `sys_suspend () ` function, notifying the SOC interface that the kernel
110110is ready to enter the idle state.
111111
112112At this point, the kernel has disabled interrupts and computed the maximum
@@ -116,7 +116,7 @@ can be done in the available time. The power management operation must halt
116116execution on a CPU or SOC low power state. Before entering the low power state,
117117the SOC interface must setup a wake event.
118118
119- The power management subsystem expects the :code: `sys_soc_suspend () ` to
119+ The power management subsystem expects the :code: `sys_suspend () ` to
120120return one of the following values based on the power management operations
121121the SOC interface executed:
122122
@@ -137,22 +137,22 @@ Resume Hook function
137137
138138.. code-block :: c
139139
140- void sys_soc_resume (void);
140+ void sys_resume (void);
141141
142142 The power management subsystem optionally calls this hook function when exiting
143143kernel idling if power management operations were performed in
144- :code: `sys_soc_suspend () `. Any necessary recovery operations can be performed
144+ :code: `sys_suspend () `. Any necessary recovery operations can be performed
145145in this function before the kernel scheduler schedules another thread. Some
146146power states may not need this notification. It can be disabled by calling
147- :code: `sys_soc_pm_idle_exit_notification_disable () ` from
148- :code: `sys_soc_suspend () `.
147+ :code: `sys_pm_idle_exit_notification_disable () ` from
148+ :code: `sys_suspend () `.
149149
150150Resume From Deep Sleep Hook function
151151====================================
152152
153153.. code-block :: c
154154
155- void sys_soc_resume_from_deep_sleep (void);
155+ void sys_resume_from_deep_sleep (void);
156156
157157 This function is optionally called when exiting from deep sleep if the SOC
158158interface does not have bootloader support to handle resume from deep sleep.
@@ -231,7 +231,7 @@ in power saving mode. This method allows saving power even when the CPU is
231231active. The components that use the devices need to be power aware and should
232232be able to make decisions related to managing device power. In this method, the
233233SOC interface can enter CPU or SOC low power states quickly when
234- :code: `sys_soc_suspend () ` gets called. This is because it does not need to
234+ :code: `sys_suspend () ` gets called. This is because it does not need to
235235spend time doing device power management if the devices are already put in
236236the appropriate low power state by the application or component managing the
237237devices.
@@ -240,7 +240,7 @@ Central method
240240==============
241241
242242In this method device power management is mostly done inside
243- :code: `sys_soc_suspend () ` along with entering a CPU or SOC low power state.
243+ :code: `sys_suspend () ` along with entering a CPU or SOC low power state.
244244
245245If a decision to enter deep sleep is made, the implementation would enter it
246246only after checking if the devices are not in the middle of a hardware
@@ -380,21 +380,21 @@ off, then such transactions would be left in an inconsistent state. This
380380infrastructure guards such transactions by indicating to the SOC interface that
381381the device is in the middle of a hardware transaction.
382382
383- When the :code: `sys_soc_suspend () ` is called, the SOC interface checks if any device
383+ When the :code: `sys_suspend () ` is called, the SOC interface checks if any device
384384is busy. The SOC interface can then decide to execute a power management scheme other than deep sleep or
385385to defer power management operations until the next call of
386- :code: `sys_soc_suspend () `.
386+ :code: `sys_suspend () `.
387387
388388An alternative to using the busy status mechanism is to use the
389389`distributed method `_ of device power management. In such a method where the
390390device power management is handled in a distributed manner rather than centrally in
391- :code: `sys_soc_suspend () `, the decision to enter deep sleep can be made based
391+ :code: `sys_suspend () `, the decision to enter deep sleep can be made based
392392on whether all devices are already turned off.
393393
394394This feature can be also used to emulate a hardware feature found in some SOCs
395395that causes the system to automatically enter deep sleep when all devices are idle.
396396In such an usage, the busy status can be set by default and cleared as each
397- device becomes idle. When :code: `sys_soc_suspend () ` is called, deep sleep can
397+ device becomes idle. When :code: `sys_suspend () ` is called, deep sleep can
398398be entered if no device is found to be busy.
399399
400400Here are the APIs used to set, clear, and check the busy status of devices.
0 commit comments