arm64 supports CPU_IDLE directly and ARM_CPUIDLE
gets disabled.

Signed-off-by: Mikko Rapeli <[email protected]>
---
 features/power/arm.cfg        | 6 ------
 features/power/arm.scc        | 6 +++++-
 features/power/arm_common.cfg | 7 +++++++
 3 files changed, 12 insertions(+), 7 deletions(-)
 create mode 100644 features/power/arm_common.cfg

diff --git a/features/power/arm.cfg b/features/power/arm.cfg
index e557fcc44b67..55966801b78a 100644
--- a/features/power/arm.cfg
+++ b/features/power/arm.cfg
@@ -1,8 +1,2 @@
 # SPDX-License-Identifier: MIT
-# To enable cpu idle and frequency scaling with the least set, as for others we
-# leave them to the end user, like which governor for idle or scaling
-
-CONFIG_CPU_IDLE=y
 CONFIG_ARM_CPUIDLE=y
-CONFIG_CPU_FREQ=y
-CONFIG_CPUFREQ_DT=y
diff --git a/features/power/arm.scc b/features/power/arm.scc
index d10c35717919..7f9c7e18714f 100644
--- a/features/power/arm.scc
+++ b/features/power/arm.scc
@@ -2,4 +2,8 @@
 define KFEATURE_DESCRIPTION "Enable ARM/ARM64 Power Management options"
 define KFEATURE_COMPATIBILITY board
 
-kconf non-hardware arm.cfg
+kconf non-hardware arm_common.cfg
+
+if [ "$KARCH" = "arm" ]; then
+       kconf hardware arm.cfg
+fi
diff --git a/features/power/arm_common.cfg b/features/power/arm_common.cfg
new file mode 100644
index 000000000000..0744c889eeaf
--- /dev/null
+++ b/features/power/arm_common.cfg
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: MIT
+# To enable cpu idle and frequency scaling with the least set, as for others we
+# leave them to the end user, like which governor for idle or scaling
+
+CONFIG_CPU_IDLE=y
+CONFIG_CPU_FREQ=y
+CONFIG_CPUFREQ_DT=y
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16144): 
https://lists.yoctoproject.org/g/linux-yocto/message/16144
Mute This Topic: https://lists.yoctoproject.org/mt/117176762/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to