summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPiotr Gorski2022-09-21 14:46:54 +0200
committerPiotr Gorski2022-09-21 14:46:54 +0200
commit12285729906485f7f9d87a4662350e69b1422494 (patch)
tree08f97daf273a594bdb7cf752924e11c6531a58c9 /PKGBUILD
parent2bc98ddfb5c6c736721f4343e250abe47cc4d5e1 (diff)
downloadaur-12285729906485f7f9d87a4662350e69b1422494.tar.gz
Fix and improve HZ flag
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD26
1 files changed, 22 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8ea15004c809..618b98740663 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -70,7 +70,7 @@ _per_gov=y
### Enable TCP_CONG_BBR2
_tcp_bbr2=y
-### Running with a 1000HZ, 750Hz, 600 Hz or 500Hz tick rate
+### Running with a 1000HZ, 750Hz, 600 Hz, 500Hz, 300Hz, 250Hz and 100Hz tick rate
_HZ_ticks=750
## Choose between perodic, idle or full
@@ -174,7 +174,7 @@ _stable=${_major}.${_minor}
_srcname=linux-${_stable}
#_srcname=linux-${_major}
pkgdesc='Linux TT scheduler Kernel by CachyOS with other patches and improvements'
-pkgrel=1
+pkgrel=2
_kernver=$pkgver-$pkgrel
arch=('x86_64' 'x86_64_v3')
url="https://github.com/CachyOS/linux-cachyos"
@@ -401,10 +401,28 @@ prepare() {
scripts/config --disable HZ_300 \
--enable HZ_500 \
--set-val HZ 500
- else
+ elif [ "$_HZ_ticks" = "300" ]; then
echo "Setting tick rate to 300Hz..."
scripts/config --enable HZ_300 \
--set-val HZ 300
+ elif [ "$_HZ_ticks" = "250" ]; then
+ echo "Setting tick rate to 250Hz..."
+ scripts/config --disable HZ_300 \
+ --enable HZ_250 \
+ --set-val HZ 250
+ elif [ "$_HZ_ticks" = "100" ]; then
+ echo "Setting tick rate to 100Hz..."
+ scripts/config --disable HZ_300 \
+ --enable HZ_100 \
+ --set-val HZ 100
+ else
+ if [ -n "$_HZ_ticks" ]; then
+ error "The value $_HZ_ticks is invalid. Choose the correct one again."
+ else
+ error "The value is empty. Choose the correct one again."
+ fi
+ error "Selecting Setting tick rate failed!"
+ exit
fi
### Disable NUMA
@@ -952,4 +970,4 @@ sha256sums=('67dab932e85f9b9062ced666c8ea888230a1dadfd624b05aead6b6ebc6d3bdd5'
'2c23daf5bd0dadda120cb6d237f1728130fe3f2bff81a70b3871fa044f74d82b'
'e1d45b5842079a5f0f53d7ea2d66ffa3f1497766f3ccffcf13ed00f1ac67f95e'
'37b05cf8cbefcc7660a548916ceba53adab153ef1202f49f465d02221fd4fa62'
- '15f14969f0940bb8f0466b0c890959a7accef7744e89d8d23c4de75b1e4dcbd1')
+ '76f6e0a1b24f8dea2ce9c2b3d2ab11374f032f5c57064f2d08e6a0bcec40c563')