Skip to content

Commit 0ef7be2

Browse files
pabigotnashif
authored andcommitted
power: allow finer control of PM selection
Some targets, such as network cores on a multi-core SoC, do not support system power management because they do not control the SoC. Provide a flag that can be selected to inihibit enabling system power management on those targets. Signed-off-by: Peter Bigot <[email protected]>
1 parent c72e232 commit 0ef7be2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

subsys/power/Kconfig

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ config SYS_POWER_MANAGEMENT
1313
menuconfig PM
1414
bool "System Power management"
1515
select TICKLESS_IDLE
16-
depends on SYS_CLOCK_EXISTS
16+
depends on SYS_CLOCK_EXISTS && !HAS_NO_SYS_PM
1717
help
1818
This option enables the board to implement extra power management
1919
policies whenever the kernel becomes idle. The kernel informs the
@@ -52,6 +52,14 @@ source "subsys/logging/Kconfig.template.log_config"
5252

5353
endif # PM
5454

55+
config HAS_NO_SYS_PM
56+
bool
57+
help
58+
This option blocks selection of PM. It can be selected in SOC
59+
targets where system power management is not supported, for example
60+
on support core of a multi-core device where SoC power management is
61+
the responsibility of a different core.
62+
5563
config PM_DEVICE
5664
bool "Device power management"
5765
help

0 commit comments

Comments
 (0)