From 26bf349ab12933d52384d41b647e552559738710 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Tue, 18 Jul 2023 10:23:18 +0200 Subject: [PATCH] pm: drop HAS_NO_PM Remove HAS_NO_PM option, in preparation for a new HAS_PM option (inverted logic). Signed-off-by: Gerard Marull-Paretas --- soc/arm/nordic_nrf/Kconfig.defconfig | 2 +- soc/arm/nordic_nrf/nrf53/Kconfig.soc | 1 - subsys/pm/Kconfig | 10 +--------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/soc/arm/nordic_nrf/Kconfig.defconfig b/soc/arm/nordic_nrf/Kconfig.defconfig index 183ec475fde..bf4264c734b 100644 --- a/soc/arm/nordic_nrf/Kconfig.defconfig +++ b/soc/arm/nordic_nrf/Kconfig.defconfig @@ -29,7 +29,7 @@ config ARCH_HAS_CUSTOM_BUSY_WAIT default y if !QEMU_TARGET config PM - default y if SYS_CLOCK_EXISTS && !HAS_NO_PM && MULTITHREADING + default y if SYS_CLOCK_EXISTS && MULTITHREADING config BUILD_OUTPUT_HEX default y diff --git a/soc/arm/nordic_nrf/nrf53/Kconfig.soc b/soc/arm/nordic_nrf/nrf53/Kconfig.soc index 67cb8a08a6f..521964b5ac6 100644 --- a/soc/arm/nordic_nrf/nrf53/Kconfig.soc +++ b/soc/arm/nordic_nrf/nrf53/Kconfig.soc @@ -12,7 +12,6 @@ config SOC_NRF5340_CPUAPP config SOC_NRF5340_CPUNET bool - select HAS_NO_PM select ARM_ON_EXIT_CPU_IDLE imply SOC_NRF53_ANOMALY_160_WORKAROUND_NEEDED diff --git a/subsys/pm/Kconfig b/subsys/pm/Kconfig index 240924f17ba..3a66d736c41 100644 --- a/subsys/pm/Kconfig +++ b/subsys/pm/Kconfig @@ -6,7 +6,7 @@ menu "Power Management" menuconfig PM bool "System Power Management" - depends on SYS_CLOCK_EXISTS && !HAS_NO_PM + depends on SYS_CLOCK_EXISTS help This option enables the board to implement extra power management policies whenever the kernel becomes idle. The kernel informs the @@ -54,14 +54,6 @@ endchoice endif # PM -config HAS_NO_PM - bool - help - This option blocks selection of PM. It can be selected in SOC - targets where system power management is not supported, for example - on support core of a multi-core device where SoC power management is - the responsibility of a different core. - config PM_DEVICE bool "Device Power Management" help