pm: rename CONFIG_PM_DEVICE_IDLE to CONFIG_PM_DEVICE_RUNTIME
Make naming clear on the purpose of this option. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
decc177e17
commit
f69759d34a
|
@ -480,9 +480,9 @@ the following configuration flags.
|
|||
This flag is enabled if the SOC interface and the devices support device power
|
||||
management.
|
||||
|
||||
:code:`CONFIG_PM_DEVICE_IDLE`
|
||||
:code:`CONFIG_PM_DEVICE_RUNTIME`
|
||||
|
||||
This flag enables the Device Idle Power Management.
|
||||
This flag enables the Runtime Power Management.
|
||||
|
||||
API Reference
|
||||
*************
|
||||
|
|
|
@ -1989,7 +1989,7 @@ PREDEFINED = "CONFIG_ARCH_HAS_CUSTOM_BUSY_WAIT" \
|
|||
"CONFIG_NET_UDP" \
|
||||
"CONFIG_PM" \
|
||||
"CONFIG_PM_DEVICE" \
|
||||
"CONFIG_PM_DEVICE_IDLE" \
|
||||
"CONFIG_PM_DEVICE_RUNTIME" \
|
||||
"CONFIG_PWM_CAPTURE" \
|
||||
"CONFIG_SCHED_CPU_MASK" \
|
||||
"CONFIG_SCHED_DEADLINE" \
|
||||
|
|
|
@ -23,7 +23,7 @@ extern "C" {
|
|||
* @{
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_PM_DEVICE_IDLE
|
||||
#ifdef CONFIG_PM_DEVICE_RUNTIME
|
||||
|
||||
/**
|
||||
* @brief Enable device idle PM
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
CONFIG_PM=y
|
||||
CONFIG_PM_DEVICE=y
|
||||
CONFIG_PM_DEVICE_IDLE=y
|
||||
CONFIG_PM_DEVICE_RUNTIME=y
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
zephyr_sources_ifdef(CONFIG_PM power.c)
|
||||
zephyr_sources_ifdef(CONFIG_PM pm_ctrl.c)
|
||||
zephyr_sources_ifdef(CONFIG_PM_DEVICE device.c)
|
||||
zephyr_sources_ifdef(CONFIG_PM_DEVICE_IDLE device_pm.c)
|
||||
zephyr_sources_ifdef(CONFIG_PM_DEVICE_RUNTIME device_pm.c)
|
||||
add_subdirectory(policy)
|
||||
|
|
|
@ -65,13 +65,12 @@ config PM_MAX_DEVICES
|
|||
depends on PM_DEVICE
|
||||
default 15
|
||||
|
||||
config PM_DEVICE_IDLE
|
||||
bool "Device Idle Power Management"
|
||||
config PM_DEVICE_RUNTIME
|
||||
bool "Runtime Device Power Management"
|
||||
depends on PM_DEVICE
|
||||
select POLL
|
||||
help
|
||||
Enable device Idle Power Management to save power.
|
||||
With device Idle PM enabled, devices can be suspended or
|
||||
resumed based on the device usage even while the CPU or
|
||||
system is running.
|
||||
Enable Runtime Power Management to save power. With device runtime PM
|
||||
enabled, devices can be suspended or resumed based on the device
|
||||
usage even while the CPU or system is running.
|
||||
endmenu
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
CONFIG_ZTEST=y
|
||||
CONFIG_PM=y
|
||||
CONFIG_PM_DEVICE=y
|
||||
CONFIG_PM_DEVICE_IDLE=y
|
||||
CONFIG_PM_DEVICE_RUNTIME=y
|
||||
CONFIG_PM_POLICY_APP=y
|
||||
CONFIG_MP_NUM_CPUS=1
|
||||
|
|
Loading…
Reference in a new issue