From 2996aad422c4d5f91a928655423be6a911e919a6 Mon Sep 17 00:00:00 2001 From: Newbyte Date: Tue, 5 Apr 2022 22:15:40 +0200 Subject: [PATCH] linux-postmarketos-stericsson: enable CPU frequency scaling (MR 3060) [ci:skip-build] Already built successfuly on CI in MR --- .../linux-postmarketos-stericsson/APKBUILD | 2 +- .../config-postmarketos-stericsson.armv7 | 26 ++++++++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/device/testing/linux-postmarketos-stericsson/APKBUILD b/device/testing/linux-postmarketos-stericsson/APKBUILD index 6474b5cb7..880cd9814 100644 --- a/device/testing/linux-postmarketos-stericsson/APKBUILD +++ b/device/testing/linux-postmarketos-stericsson/APKBUILD @@ -72,7 +72,7 @@ package() { sha512sums=" 8b3c19e9a5ca0bb6c78ab680196688819bf0ee438940c3086f975508e46b2f7bdec4b564e94cc2b50501bcc1a96421aa61cc42f31d482d420203dc3956ab82d1 linux-5.18-rc1.tar.gz -c50979b7f7bcc8e164e832eedd460f983796e0dc53a850bc94653327cc683f0ca46cd1488fd8bf7ecd2c79f720d056e6118c8f79f650ed55209ae4d8ba3b4d1c config-postmarketos-stericsson.armv7 +27daa4a3f53ec829b91c60910d182f20000019d73ea3fbcec672e1488f990926fba80107e7aa60237e97456417792709488d7f3bc5df1f3686789a0061000e20 config-postmarketos-stericsson.armv7 abd32f479cec53b9df092f2c0f434343b1e228be2cf340d26f6f61d4fabbba127f24ec1bd561b5b2fc806cec16eef46e18f6d5c781dd3ef256797acc5409dc62 arm-dts-ux500-add-line-impedance-to-fuel-gauge.patch 4ea0fd3fa602bab21f0cc2c31462d3ef6958c63394b41061ddf0bc2c8baa8b9c571cb5553a37c43315df84049eb7d6a6dc4f873c6d06d9ea4883c37dce40d7ec disable-busy-detect-on-ux500-mmci.patch 56c0e375d9078abf1144bf6df25dab176794a18d5c33f77e76b5dc44fc60f0f40ffe26991f0529ff36deaef0b3b66f8ae880968aa2459f774feb4c7993658bdd power-supply-ab8500-exit-maintenance-if-too-low-voltage.patch diff --git a/device/testing/linux-postmarketos-stericsson/config-postmarketos-stericsson.armv7 b/device/testing/linux-postmarketos-stericsson/config-postmarketos-stericsson.armv7 index f359b2639..27b077bd1 100644 --- a/device/testing/linux-postmarketos-stericsson/config-postmarketos-stericsson.armv7 +++ b/device/testing/linux-postmarketos-stericsson/config-postmarketos-stericsson.armv7 @@ -107,6 +107,7 @@ CONFIG_PREEMPT_NONE=y CONFIG_TICK_CPU_ACCOUNTING=y # CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set # CONFIG_IRQ_TIME_ACCOUNTING is not set +CONFIG_SCHED_THERMAL_PRESSURE=y # CONFIG_BSD_PROCESS_ACCT is not set # CONFIG_TASKSTATS is not set CONFIG_PSI=y @@ -137,6 +138,7 @@ CONFIG_GENERIC_SCHED_CLOCK=y # # Scheduler features # +# CONFIG_UCLAMP_TASK is not set # end of Scheduler features CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5" @@ -494,7 +496,27 @@ CONFIG_AUTO_ZRELADDR=y # # CPU Frequency scaling # -# CONFIG_CPU_FREQ is not set +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_GOV_ATTR_SET=y +# CONFIG_CPU_FREQ_STAT is not set +# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set +# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set +# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set +# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set +# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set +CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y +CONFIG_CPU_FREQ_GOV_PERFORMANCE=y +# CONFIG_CPU_FREQ_GOV_POWERSAVE is not set +# CONFIG_CPU_FREQ_GOV_USERSPACE is not set +# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set +# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set +CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y + +# +# CPU frequency scaling drivers +# +CONFIG_CPUFREQ_DT=y +CONFIG_CPUFREQ_DT_PLATDEV=y # end of CPU Frequency scaling # @@ -546,6 +568,7 @@ CONFIG_PM_GENERIC_DOMAINS=y CONFIG_PM_GENERIC_DOMAINS_SLEEP=y CONFIG_PM_GENERIC_DOMAINS_OF=y CONFIG_CPU_PM=y +# CONFIG_ENERGY_MODEL is not set CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARM_CPU_SUSPEND=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y @@ -2454,6 +2477,7 @@ CONFIG_THERMAL_GOV_STEP_WISE=y # CONFIG_THERMAL_GOV_BANG_BANG is not set # CONFIG_THERMAL_GOV_USER_SPACE is not set CONFIG_CPU_THERMAL=y +CONFIG_CPU_FREQ_THERMAL=y # CONFIG_DEVFREQ_THERMAL is not set # CONFIG_THERMAL_EMULATION is not set # CONFIG_THERMAL_MMIO is not set