Skip to content

Commit d03307b

Browse files
gmarullcarlescufi
authored andcommitted
pm: policy: delete redundant PM_POLICY_RESIDENCY_DEFAULT config
Kconfig choice allows to set a default, so there is no need for an extra hidden Kconfig option. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 80021f2 commit d03307b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

subsys/pm/policy/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
zephyr_sources_ifdef(CONFIG_PM_POLICY_RESIDENCY_DEFAULT policy_residency.c)
3+
zephyr_sources_ifdef(CONFIG_PM_POLICY_RESIDENCY policy_residency.c)

subsys/pm/policy/Kconfig

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
choice PM_POLICY
44
prompt "Idle State Power Management Policy"
5+
default PM_POLICY_RESIDENCY
56
help
67
Select the idle state power management policy.
78

89
config PM_POLICY_RESIDENCY
910
bool "PM Policy based on CPU residency"
10-
select PM_POLICY_RESIDENCY_DEFAULT
1111
help
1212
Select this option for PM policy based on CPU residencies.
1313

@@ -17,8 +17,3 @@ config PM_POLICY_APP
1717
When this option is selected, the application must provide PM policy.
1818

1919
endchoice
20-
21-
config PM_POLICY_RESIDENCY_DEFAULT
22-
bool
23-
help
24-
Use the default residency policy implementation

0 commit comments

Comments
 (0)