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:
Gerard Marull-Paretas 2021-04-29 14:12:11 +02:00 committed by Anas Nashif
parent decc177e17
commit f69759d34a
7 changed files with 12 additions and 13 deletions

View file

@ -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
*************

View file

@ -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" \

View file

@ -23,7 +23,7 @@ extern "C" {
* @{
*/
#ifdef CONFIG_PM_DEVICE_IDLE
#ifdef CONFIG_PM_DEVICE_RUNTIME
/**
* @brief Enable device idle PM

View file

@ -1,3 +1,3 @@
CONFIG_PM=y
CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_IDLE=y
CONFIG_PM_DEVICE_RUNTIME=y

View file

@ -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)

View file

@ -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

View file

@ -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