linux512-tkg: Import 5.12-ck1 patchset - http://ck-hack.blogspot.com/2021/04/linux-512-ck1-muqss-version-0210-for.html
This commit is contained in:
parent
4cd7091d0b
commit
61d96a227a
11
PKGBUILD
11
PKGBUILD
@ -53,7 +53,7 @@ else
|
||||
fi
|
||||
pkgname=("${pkgbase}" "${pkgbase}-headers")
|
||||
pkgver="${_basekernel}"."${_sub}"
|
||||
pkgrel=150
|
||||
pkgrel=151
|
||||
pkgdesc='Linux-tkg'
|
||||
arch=('x86_64') # no i686 in here
|
||||
url="http://www.kernel.org/"
|
||||
@ -417,9 +417,9 @@ case $_basever in
|
||||
0002-clear-patches.patch
|
||||
0003-glitched-base.patch
|
||||
0003-glitched-cfs.patch
|
||||
#0004-glitched-ondemand-muqss.patch
|
||||
#0004-glitched-muqss.patch
|
||||
#0004-5.12-ck1.patch
|
||||
0004-glitched-ondemand-muqss.patch
|
||||
0004-glitched-muqss.patch
|
||||
0004-5.12-ck1.patch
|
||||
#0005-undead-glitched-ondemand-pds.patch
|
||||
#0005-undead-glitched-pds.patch
|
||||
#0005-v5.12_undead-pds099o.patch
|
||||
@ -446,6 +446,9 @@ case $_basever in
|
||||
'35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0'
|
||||
'1ac97da07e72ec7e2b0923d32daacacfaa632a44c714d6942d9f143fe239e1b5'
|
||||
'7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7'
|
||||
'c605f638d74c61861ebdc36ebd4cb8b6475eae2f6273e1ccb2bbb3e10a2ec3fe'
|
||||
'bc69d6e5ee8172b0242c8fa72d13cfe2b8d2b6601468836908a7dfe8b78a3bbb'
|
||||
'742d12d2e2ab5b59245a897af6e7726b8d14ed39d5fd402faba23fa56382b87a'
|
||||
'fca63d15ca4502aebd73e76d7499b243d2c03db71ff5ab0bf5cf268b2e576320'
|
||||
'19661ec0d39f9663452b34433214c755179894528bf73a42f6ba52ccf572832a'
|
||||
'b302ba6c5bbe8ed19b20207505d513208fae1e678cf4d8e7ac0b154e5fe3f456'
|
||||
|
@ -190,8 +190,8 @@ _tkg_initscript() {
|
||||
_CPUSCHEDARRAY=("Undead PDS (TkG)" "Project C / PDS" "Project C / BMQ" "MuQSS" "CFS")
|
||||
_CPUSCHEDVARARRAY=("upds" "pds" "bmq" "muqss" "MuQSS" "cfs")
|
||||
elif [ "$_basever" = "512" ]; then
|
||||
_CPUSCHEDARRAY=("Project C / PDS" "Project C / BMQ" "CFS")
|
||||
_CPUSCHEDVARARRAY=("pds" "bmq" "cfs")
|
||||
_CPUSCHEDARRAY=("Project C / PDS" "Project C / BMQ" "MuQSS" "CFS")
|
||||
_CPUSCHEDVARARRAY=("pds" "bmq" "muqss" "MuQSS" "cfs")
|
||||
else
|
||||
_CPUSCHEDARRAY=("CFS")
|
||||
_CPUSCHEDVARARRAY=("cfs")
|
||||
@ -534,6 +534,7 @@ _tkg_srcprep() {
|
||||
sed -i -e 's/CONFIG_RCU_BOOST_DELAY=500/CONFIG_RCU_BOOST_DELAY=0/' ./.config
|
||||
fi
|
||||
echo "# CONFIG_NTP_PPS is not set" >> ./.config
|
||||
echo "# CPU_FREQ_DEFAULT_GOV_PERFORMANCE_NODEF is not set" >> ./.config
|
||||
sed -i -e 's/CONFIG_CRYPTO_LZ4=m/CONFIG_CRYPTO_LZ4=y/' ./.config
|
||||
sed -i -e 's/CONFIG_CRYPTO_LZ4HC=m/CONFIG_CRYPTO_LZ4HC=y/' ./.config
|
||||
sed -i -e 's/CONFIG_LZ4_COMPRESS=m/CONFIG_LZ4_COMPRESS=y/' ./.config
|
||||
@ -1033,6 +1034,7 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\n
|
||||
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_PERFORMANCE is not set/CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y/' ./.config
|
||||
sed -i -e 's/# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE_NODEF is not set/CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE_NODEF=y/' ./.config
|
||||
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_ONDEMAND is not set/CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y/' ./.config
|
||||
|
13808
linux-tkg-patches/5.12/0004-5.12-ck1.patch
Normal file
13808
linux-tkg-patches/5.12/0004-5.12-ck1.patch
Normal file
File diff suppressed because it is too large
Load Diff
78
linux-tkg-patches/5.12/0004-glitched-muqss.patch
Normal file
78
linux-tkg-patches/5.12/0004-glitched-muqss.patch
Normal file
@ -0,0 +1,78 @@
|
||||
From f7f49141a5dbe9c99d78196b58c44307fb2e6be3 Mon Sep 17 00:00:00 2001
|
||||
From: Tk-Glitch <ti3nou@gmail.com>
|
||||
Date: Wed, 4 Jul 2018 04:30:08 +0200
|
||||
Subject: glitched - MuQSS
|
||||
|
||||
diff --git a/kernel/sched/MuQSS.c b/kernel/sched/MuQSS.c
|
||||
index 84a1d08d68551..57c3036a68952 100644
|
||||
--- a/kernel/sched/MuQSS.c
|
||||
+++ b/kernel/sched/MuQSS.c
|
||||
@@ -163,7 +167,11 @@ int sched_interactive __read_mostly = 1;
|
||||
* are allowed to run five seconds as real time tasks. This is the total over
|
||||
* all online cpus.
|
||||
*/
|
||||
+#ifdef CONFIG_ZENIFY
|
||||
+int sched_iso_cpu __read_mostly = 25;
|
||||
+#else
|
||||
int sched_iso_cpu __read_mostly = 70;
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* sched_yield_type - Choose what sort of yield sched_yield will perform.
|
||||
|
||||
diff --git a/kernel/Kconfig.hz b/kernel/Kconfig.hz
|
||||
index 2a202a846757..1d9c7ed79b11 100644
|
||||
--- a/kernel/Kconfig.hz
|
||||
+++ b/kernel/Kconfig.hz
|
||||
@@ -5,7 +5,7 @@
|
||||
choice
|
||||
prompt "Timer frequency"
|
||||
default HZ_100 if SCHED_MUQSS
|
||||
- default HZ_250_NODEF if !SCHED_MUQSS
|
||||
+ default HZ_500_NODEF if !SCHED_MUQSS
|
||||
help
|
||||
Allows the configuration of the timer frequency. It is customary
|
||||
to have the timer interrupt run at 1000 Hz but 100 Hz may be more
|
||||
@@ -50,6 +50,20 @@ choice
|
||||
on SMP and NUMA systems and exactly dividing by both PAL and
|
||||
NTSC frame rates for video and multimedia work.
|
||||
|
||||
+ config HZ_500_NODEF
|
||||
+ bool "500 HZ"
|
||||
+ help
|
||||
+ 500 Hz is a good timer frequency for desktops. Provides fast
|
||||
+ interactivity with great smoothness without sacrificing too
|
||||
+ much throughput.
|
||||
+
|
||||
+ config HZ_750_NODEF
|
||||
+ bool "750 HZ"
|
||||
+ help
|
||||
+ 750 Hz is a good timer frequency for desktops. Provides fast
|
||||
+ interactivity with great smoothness without sacrificing too
|
||||
+ much throughput.
|
||||
+
|
||||
config HZ_1000_NODEF
|
||||
bool "1000 HZ"
|
||||
help
|
||||
@@ -63,6 +70,8 @@ config HZ
|
||||
default 100 if HZ_100
|
||||
default 250 if HZ_250_NODEF
|
||||
default 300 if HZ_300_NODEF
|
||||
+ default 500 if HZ_500_NODEF
|
||||
+ default 750 if HZ_750_NODEF
|
||||
default 1000 if HZ_1000_NODEF
|
||||
|
||||
config SCHED_HRTICK
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index d4d36c61940b..4a9dfe471f1f 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -15,7 +15,6 @@ NAME = Kleptomaniac Octopus
|
||||
|
||||
CKVERSION = -ck1
|
||||
CKNAME = MuQSS Powered
|
||||
-EXTRAVERSION := $(EXTRAVERSION)$(CKVERSION)
|
||||
|
||||
# We are using a recursive build, so we need to do a little thinking
|
||||
# to get the ordering right.
|
18
linux-tkg-patches/5.12/0004-glitched-ondemand-muqss.patch
Normal file
18
linux-tkg-patches/5.12/0004-glitched-ondemand-muqss.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/drivers/cpufreq/cpufreq_ondemand.c b/drivers/cpufreq/cpufreq_ondemand.c
|
||||
index 6b423eebfd5d..61e3271675d6 100644
|
||||
--- a/drivers/cpufreq/cpufreq_ondemand.c
|
||||
+++ b/drivers/cpufreq/cpufreq_ondemand.c
|
||||
@@ -21,10 +21,10 @@
|
||||
#include "cpufreq_ondemand.h"
|
||||
|
||||
/* On-demand governor macros */
|
||||
-#define DEF_FREQUENCY_UP_THRESHOLD (80)
|
||||
-#define DEF_SAMPLING_DOWN_FACTOR (1)
|
||||
+#define DEF_FREQUENCY_UP_THRESHOLD (45)
|
||||
+#define DEF_SAMPLING_DOWN_FACTOR (5)
|
||||
#define MAX_SAMPLING_DOWN_FACTOR (100000)
|
||||
-#define MICRO_FREQUENCY_UP_THRESHOLD (95)
|
||||
+#define MICRO_FREQUENCY_UP_THRESHOLD (45)
|
||||
#define MICRO_FREQUENCY_MIN_SAMPLE_RATE (10000)
|
||||
#define MIN_FREQUENCY_UP_THRESHOLD (1)
|
||||
#define MAX_FREQUENCY_UP_THRESHOLD (100)
|
Loading…
Reference in New Issue
Block a user