linux510-tkg: Revert upstream patch "cpufreq: Avoid configuring old governors as default with intel_pstate"
This is an undesirable behavior for us since our aggressive ondemand performs better than schedutil for gaming when using intel_pstate in passive mode. Also it interferes with the option to select the desired default governor we have. Possible fix for https://github.com/Frogging-Family/linux-tkg/issues/132
This commit is contained in:
parent
2999df9e52
commit
e385a94a06
4
PKGBUILD
4
PKGBUILD
@ -48,7 +48,7 @@ else
|
|||||||
fi
|
fi
|
||||||
pkgname=("${pkgbase}" "${pkgbase}-headers")
|
pkgname=("${pkgbase}" "${pkgbase}-headers")
|
||||||
pkgver="${_basekernel}"."${_sub}"
|
pkgver="${_basekernel}"."${_sub}"
|
||||||
pkgrel=116
|
pkgrel=117
|
||||||
pkgdesc='Linux-tkg'
|
pkgdesc='Linux-tkg'
|
||||||
arch=('x86_64') # no i686 in here
|
arch=('x86_64') # no i686 in here
|
||||||
url="http://www.kernel.org/"
|
url="http://www.kernel.org/"
|
||||||
@ -337,7 +337,7 @@ case $_basever in
|
|||||||
'e308292fc42840a2366280ea7cf26314e92b931bb11f04ad4830276fc0326ee1'
|
'e308292fc42840a2366280ea7cf26314e92b931bb11f04ad4830276fc0326ee1'
|
||||||
'49262ce4a8089fa70275aad742fc914baa28d9c384f710c9a62f64796d13e104'
|
'49262ce4a8089fa70275aad742fc914baa28d9c384f710c9a62f64796d13e104'
|
||||||
'105f51e904d80f63c1421203e093b612fc724edefd3e388b64f8d371c0b3a842'
|
'105f51e904d80f63c1421203e093b612fc724edefd3e388b64f8d371c0b3a842'
|
||||||
'cf7c758604f2a99cfcb65129c436e32e2ef7a80fe486f8e55a2206a955acc40a')
|
'a39f952930394cbc6a71ecf166eb0ade5835e82690669161f0437d7f72ceb3aa')
|
||||||
;;
|
;;
|
||||||
511)
|
511)
|
||||||
opt_ver="5.8%2B"
|
opt_ver="5.8%2B"
|
||||||
|
@ -501,6 +501,9 @@ _tkg_srcprep() {
|
|||||||
echo "CONFIG_CMDLINE=\"${_custom_commandline}\"" >> ./.config
|
echo "CONFIG_CMDLINE=\"${_custom_commandline}\"" >> ./.config
|
||||||
echo "# CONFIG_CMDLINE_OVERRIDE is not set" >> ./.config
|
echo "# CONFIG_CMDLINE_OVERRIDE is not set" >> ./.config
|
||||||
echo "# CONFIG_X86_P6_NOP is not set" >> ./.config
|
echo "# CONFIG_X86_P6_NOP is not set" >> ./.config
|
||||||
|
#echo "# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set" >> ./.config
|
||||||
|
echo "# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set" >> ./.config
|
||||||
|
echo "# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set" >> ./.config
|
||||||
|
|
||||||
# openrgb
|
# openrgb
|
||||||
echo "CONFIG_I2C_NCT6775=m" >> ./.config
|
echo "CONFIG_I2C_NCT6775=m" >> ./.config
|
||||||
@ -846,22 +849,13 @@ _tkg_srcprep() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# default cpu gov
|
# default cpu gov
|
||||||
if [ "$_basever" = "54" ] || [ "$_basever" = "57" ] || [ "$_basever" = "58" ]; then
|
if [ "$_default_cpu_gov" = "performance" ]; then
|
||||||
if [ "$_default_cpu_gov" = "performance" ]; then
|
sed -i -e 's/CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y/# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set/' ./.config
|
||||||
sed -i -e 's/CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y/# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set/' ./.config
|
sed -i -e 's/# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set/CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y/' ./.config
|
||||||
sed -i -e 's/# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set/CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y/' ./.config
|
elif [ "$_default_cpu_gov" = "ondemand" ]; then
|
||||||
elif [ "$_default_cpu_gov" = "ondemand" ]; then
|
sed -i -e 's/CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y/# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set/' ./.config
|
||||||
sed -i -e 's/CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y/# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set/' ./.config
|
sed -i -e 's/# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set/CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y/' ./.config
|
||||||
sed -i -e 's/# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set/CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y/' ./.config
|
sed -i -e 's/CONFIG_CPU_FREQ_GOV_ONDEMAND=m/CONFIG_CPU_FREQ_GOV_ONDEMAND=y/' ./.config
|
||||||
fi
|
|
||||||
else
|
|
||||||
if [ "$_default_cpu_gov" = "performance" ]; then
|
|
||||||
_custom_commandline+=" cpufreq.default_governor=performance"
|
|
||||||
elif [ "$_default_cpu_gov" = "ondemand" ]; then
|
|
||||||
_custom_commandline+=" cpufreq.default_governor=ondemand"
|
|
||||||
sed -i -e 's/CONFIG_CPU_FREQ_GOV_ONDEMAND=m/CONFIG_CPU_FREQ_GOV_ONDEMAND=y/' ./.config
|
|
||||||
fi
|
|
||||||
msg2 "Command line set to \"$_custom_commandline\""
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ACPI_CPUFREQ disablement
|
# ACPI_CPUFREQ disablement
|
||||||
|
@ -135,3 +135,33 @@ index 4d8f19ab1014..294f26f4f310 100644
|
|||||||
gtt_size = (uint64_t)amdgpu_gtt_size << 20;
|
gtt_size = (uint64_t)amdgpu_gtt_size << 20;
|
||||||
--
|
--
|
||||||
2.30.0
|
2.30.0
|
||||||
|
|
||||||
|
From f7f49141a5dbe9c99d78196b58c44307fb2e6be3 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Tk-Glitch <ti3nou@gmail.com>
|
||||||
|
Date: Wed, 3 Feb 2021 11:20:12 +0200
|
||||||
|
Subject: Revert "cpufreq: Avoid configuring old governors as default with intel_pstate"
|
||||||
|
|
||||||
|
This is an undesirable behavior for us since our aggressive ondemand performs
|
||||||
|
better than schedutil for gaming when using intel_pstate in passive mode.
|
||||||
|
Also it interferes with the option to select the desired default governor we have.
|
||||||
|
|
||||||
|
diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig
|
||||||
|
index 2c7171e0b0010..85de313ddec29 100644
|
||||||
|
--- a/drivers/cpufreq/Kconfig
|
||||||
|
+++ b/drivers/cpufreq/Kconfig
|
||||||
|
@@ -71,7 +71,6 @@ config CPU_FREQ_DEFAULT_GOV_USERSPACE
|
||||||
|
|
||||||
|
config CPU_FREQ_DEFAULT_GOV_ONDEMAND
|
||||||
|
bool "ondemand"
|
||||||
|
- depends on !(X86_INTEL_PSTATE && SMP)
|
||||||
|
select CPU_FREQ_GOV_ONDEMAND
|
||||||
|
select CPU_FREQ_GOV_PERFORMANCE
|
||||||
|
help
|
||||||
|
@@ -83,7 +84,6 @@ config CPU_FREQ_DEFAULT_GOV_ONDEMAND
|
||||||
|
|
||||||
|
config CPU_FREQ_DEFAULT_GOV_CONSERVATIVE
|
||||||
|
bool "conservative"
|
||||||
|
- depends on !(X86_INTEL_PSTATE && SMP)
|
||||||
|
select CPU_FREQ_GOV_CONSERVATIVE
|
||||||
|
select CPU_FREQ_GOV_PERFORMANCE
|
||||||
|
help
|
||||||
|
Loading…
Reference in New Issue
Block a user