From 433e4155f17bbe30eeee4b87844de515dc2b0e10 Mon Sep 17 00:00:00 2001 From: Jan Jasper de Kroon Date: Mon, 12 Dec 2022 13:11:35 +0100 Subject: [PATCH] device/community/linux-pine64-pinephonepro: Switch to CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL (MR 3719) Schedutil is a CPU scheduler that is designed to be more efficient than other schedulers, such as the conservative scheduler, in terms of energy consumption. This is because schedutil uses information about the utilization of individual CPU cores to make more intelligent decisions about when and how to scale the frequency of the CPU. This can help to reduce the overall power consumption of the device, which can be particularly beneficial for battery-powered devices. Additionally, schedutil can also help to improve the overall performance of the device by ensuring that the CPU is able to operate at its maximum frequency when needed. In my personal testing I haven't seen any noticable impact on power consumption, while the performance does certainly noticeably increase [ci:skip-build]: Already built successfully in CI --- device/community/linux-pine64-pinephonepro/APKBUILD | 4 ++-- .../config-pine64-pinephonepro.aarch64 | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/device/community/linux-pine64-pinephonepro/APKBUILD b/device/community/linux-pine64-pinephonepro/APKBUILD index 1163a1a30..d617d8162 100644 --- a/device/community/linux-pine64-pinephonepro/APKBUILD +++ b/device/community/linux-pine64-pinephonepro/APKBUILD @@ -5,7 +5,7 @@ pkgname=linux-pine64-pinephonepro pkgver=6.1 _pkgver=6.1 _tagdate=20221212-1243 -pkgrel=0 +pkgrel=1 pkgdesc="Mainline kernel for the pinephone pro" arch="aarch64" _flavor="${pkgname#linux-}" @@ -81,6 +81,6 @@ package() { sha512sums=" 9fe6d47bcd8799a0d1ab4eb8bf0e3c52854b28f4de0f75789c4bb5aad48e76aea4edecfc36350623ed320f43b480c69aa2c83f4244c51f1c0d0cc7f610f5882b linux-ppp-6.1-20221212-1243.tar.gz -22b5c48227154e40b47b87f19fe39e256bea6cdcad1d3bff087724c40dc6772546cce18ce66feebaf6b47727dddd83d1be320e77db0345c0471aa8358976e210 config-pine64-pinephonepro.aarch64 +3223648b5269c902445297a4da4a29cea2e92ced6ca22c1a75cf02b71c21de650b605d6c0a1028f02889ba971bac2e17e0418668dbc020245b4396e52f8bebed config-pine64-pinephonepro.aarch64 b04b4081b5716802bfe6323f9b1c5fce503bef92e680e8ee49d3c1bc579bed5e79d23054db11f39620c055167a0444104423ec497bc7b60d7aaa115e2f7db775 stk3311-pinctl-patch.patch " diff --git a/device/community/linux-pine64-pinephonepro/config-pine64-pinephonepro.aarch64 b/device/community/linux-pine64-pinephonepro/config-pine64-pinephonepro.aarch64 index 1c853f900..24ae554d2 100644 --- a/device/community/linux-pine64-pinephonepro/config-pine64-pinephonepro.aarch64 +++ b/device/community/linux-pine64-pinephonepro/config-pine64-pinephonepro.aarch64 @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/arm64 6.1.0-rc8 Kernel Configuration +# Linux/arm64 6.1.0 Kernel Configuration # CONFIG_CC_VERSION_TEXT="aarch64-alpine-linux-musl-gcc (Alpine 12.2.1_git20220924-r5) 12.2.1 20220924" CONFIG_CC_IS_GCC=y @@ -575,8 +575,8 @@ CONFIG_CPU_FREQ_STAT=y # 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=y -# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL 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=m CONFIG_CPU_FREQ_GOV_USERSPACE=m