linux54-tkg: Allow for 100Hz timer frequency from .cfg
This commit is contained in:
parent
13bd01eaff
commit
ad2cdb9e3f
@ -89,7 +89,7 @@ pkgname=("${pkgbase}" "${pkgbase}-headers")
|
|||||||
_basekernel=5.4
|
_basekernel=5.4
|
||||||
_sub=49
|
_sub=49
|
||||||
pkgver="${_basekernel}"."${_sub}"
|
pkgver="${_basekernel}"."${_sub}"
|
||||||
pkgrel=66
|
pkgrel=67
|
||||||
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/"
|
||||||
|
@ -123,7 +123,7 @@ _random_trust_cpu="false"
|
|||||||
# Valid values are "none", "smt", "mc", "mc-llc"(for zen), "smp", "all" - Kernel default is "mc"
|
# Valid values are "none", "smt", "mc", "mc-llc"(for zen), "smp", "all" - Kernel default is "mc"
|
||||||
_runqueue_sharing=""
|
_runqueue_sharing=""
|
||||||
|
|
||||||
# Timer frequency - "500", "750" or "1000" - More options available in kernel config prompt when left empty depending on selected cpusched - Kernel default is "500"
|
# Timer frequency - "100" "500", "750" or "1000" - More options available in kernel config prompt when left empty depending on selected cpusched - Kernel default is "500" - For MuQSS, 100Hz is recommended
|
||||||
_timer_freq=""
|
_timer_freq=""
|
||||||
|
|
||||||
# Default CPU governor - "performance", "ondemand", "schedutil" or leave empty for default (schedutil on AMD and legacy Intel, intel_pstate on modern Intel)
|
# Default CPU governor - "performance", "ondemand", "schedutil" or leave empty for default (schedutil on AMD and legacy Intel, intel_pstate on modern Intel)
|
||||||
|
@ -366,7 +366,29 @@ _tkg_srcprep() {
|
|||||||
echo "# CONFIG_HZ_1000_NODEF is not set" >> ./.config
|
echo "# CONFIG_HZ_1000_NODEF is not set" >> ./.config
|
||||||
echo "# CONFIG_HZ_250_NODEF is not set" >> ./.config
|
echo "# CONFIG_HZ_250_NODEF is not set" >> ./.config
|
||||||
echo "# CONFIG_HZ_300_NODEF is not set" >> ./.config
|
echo "# CONFIG_HZ_300_NODEF is not set" >> ./.config
|
||||||
|
elif [ "$_timer_freq" == "100" ]; then
|
||||||
|
sed -i -e 's/CONFIG_HZ=300/CONFIG_HZ=100/' ./.config
|
||||||
|
echo "# CONFIG_HZ_500 is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_750 is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_1000_NODEF is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_750_NODEF is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_500_NODEF is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_250_NODEF is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_300_NODEF is not set" >> ./.config
|
||||||
|
echo "CONFIG_HZ_100=y" >> ./.config
|
||||||
|
echo "CONFIG_HZ_100_NODEF=y" >> ./.config
|
||||||
fi
|
fi
|
||||||
|
elif [ "${_cpusched}" == "MuQSS" ] && [ -z "$_timer_freq" ]; then
|
||||||
|
sed -i -e 's/CONFIG_HZ=300/CONFIG_HZ=100/' ./.config
|
||||||
|
echo "# CONFIG_HZ_500 is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_750 is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_1000_NODEF is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_750_NODEF is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_500_NODEF is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_250_NODEF is not set" >> ./.config
|
||||||
|
echo "# CONFIG_HZ_300_NODEF is not set" >> ./.config
|
||||||
|
echo "CONFIG_HZ_100=y" >> ./.config
|
||||||
|
echo "CONFIG_HZ_100_NODEF=y" >> ./.config
|
||||||
else
|
else
|
||||||
sed -i -e 's/CONFIG_HZ_300=y/# CONFIG_HZ_300 is not set/' ./.config
|
sed -i -e 's/CONFIG_HZ_300=y/# CONFIG_HZ_300 is not set/' ./.config
|
||||||
sed -i -e 's/CONFIG_HZ_300_NODEF=y/# CONFIG_HZ_300_NODEF is not set/' ./.config
|
sed -i -e 's/CONFIG_HZ_300_NODEF=y/# CONFIG_HZ_300_NODEF is not set/' ./.config
|
||||||
|
Loading…
x
Reference in New Issue
Block a user