linux57-tkg: Import ck1 patchset and friends for 5.7
http://ck-hack.blogspot.com/2020/06/linux-57-ck1-muqss-version-0202-for.html
This commit is contained in:
parent
34a5e882f2
commit
a9d36ea252
@ -54,10 +54,12 @@ fi
|
|||||||
# CPU SCHED selector
|
# CPU SCHED selector
|
||||||
if [ -z "$_cpusched" ] && [ ! -e "$_where"/cpuschedset ]; then
|
if [ -z "$_cpusched" ] && [ ! -e "$_where"/cpuschedset ]; then
|
||||||
plain "What CPU sched variant do you want to build/install?"
|
plain "What CPU sched variant do you want to build/install?"
|
||||||
read -rp "`echo $' > 1.PDS\n 2.BMQ\n 3.CFS\nchoice[1-3?]: '`" CONDITION;
|
read -rp "`echo $' > 1.PDS\n 2.MuQSS\n 3.BMQ\n 4.CFS\nchoice[1-4?]: '`" CONDITION;
|
||||||
if [ "$CONDITION" == "2" ]; then
|
if [ "$CONDITION" == "2" ]; then
|
||||||
echo "_cpusched=\"bmq\"" > "$_where"/cpuschedset
|
echo "_cpusched=\"MuQSS\"" > "$_where"/cpuschedset
|
||||||
elif [ "$CONDITION" == "3" ]; then
|
elif [ "$CONDITION" == "3" ]; then
|
||||||
|
echo "_cpusched=\"bmq\"" > "$_where"/cpuschedset
|
||||||
|
elif [ "$CONDITION" == "4" ]; then
|
||||||
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
echo "_cpusched=\"cfs\"" > "$_where"/cpuschedset
|
||||||
else
|
else
|
||||||
echo "_cpusched=\"pds\"" > "$_where"/cpuschedset
|
echo "_cpusched=\"pds\"" > "$_where"/cpuschedset
|
||||||
@ -65,6 +67,8 @@ if [ -z "$_cpusched" ] && [ ! -e "$_where"/cpuschedset ]; then
|
|||||||
if [ -n "$_custom_pkgbase" ]; then
|
if [ -n "$_custom_pkgbase" ]; then
|
||||||
echo "_custom_pkgbase=\"${_custom_pkgbase}\"" >> "$_where"/cpuschedset
|
echo "_custom_pkgbase=\"${_custom_pkgbase}\"" >> "$_where"/cpuschedset
|
||||||
fi
|
fi
|
||||||
|
elif [ "$_cpusched" == "muqss" ] || [ "$_cpusched" == "MuQSS" ]; then
|
||||||
|
echo "_cpusched=\"MuQSS\"" > "$_where"/cpuschedset
|
||||||
elif [ "$_cpusched" == "pds" ]; then
|
elif [ "$_cpusched" == "pds" ]; then
|
||||||
echo "_cpusched=\"pds\"" > "$_where"/cpuschedset
|
echo "_cpusched=\"pds\"" > "$_where"/cpuschedset
|
||||||
elif [ "$_cpusched" == "bmq" ]; then
|
elif [ "$_cpusched" == "bmq" ]; then
|
||||||
@ -85,7 +89,7 @@ pkgname=("${pkgbase}" "${pkgbase}-headers")
|
|||||||
_basekernel=5.7
|
_basekernel=5.7
|
||||||
_sub=1
|
_sub=1
|
||||||
pkgver="${_basekernel}"."${_sub}"
|
pkgver="${_basekernel}"."${_sub}"
|
||||||
pkgrel=3
|
pkgrel=4
|
||||||
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/"
|
||||||
@ -105,9 +109,9 @@ source=("https://www.kernel.org/pub/linux/kernel/v5.x/linux-${_basekernel}.tar.x
|
|||||||
0002-clear-patches.patch
|
0002-clear-patches.patch
|
||||||
0003-glitched-base.patch
|
0003-glitched-base.patch
|
||||||
0003-glitched-cfs.patch
|
0003-glitched-cfs.patch
|
||||||
# 0004-glitched-ondemand-muqss.patch
|
0004-glitched-ondemand-muqss.patch
|
||||||
# 0004-glitched-muqss.patch
|
0004-glitched-muqss.patch
|
||||||
# 0004-5.7-ck1.patch
|
0004-5.7-ck1.patch
|
||||||
0005-glitched-ondemand-pds.patch
|
0005-glitched-ondemand-pds.patch
|
||||||
0005-glitched-pds.patch
|
0005-glitched-pds.patch
|
||||||
0005-v5.7_undead-pds099o.patch
|
0005-v5.7_undead-pds099o.patch
|
||||||
@ -129,6 +133,9 @@ sha256sums=('de8163bb62f822d84f7a3983574ec460060bf013a78ff79cd7c979ff1ec1d7e0'
|
|||||||
'd02bf5ca08fd610394b9d3a0c3b176d74af206f897dee826e5cbaec97bb4a4aa'
|
'd02bf5ca08fd610394b9d3a0c3b176d74af206f897dee826e5cbaec97bb4a4aa'
|
||||||
'8352d688733b23472d10aa2fec3f604606fdeb957bc35f4851831a9b624556b8'
|
'8352d688733b23472d10aa2fec3f604606fdeb957bc35f4851831a9b624556b8'
|
||||||
'7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7'
|
'7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7'
|
||||||
|
'c605f638d74c61861ebdc36ebd4cb8b6475eae2f6273e1ccb2bbb3e10a2ec3fe'
|
||||||
|
'bc69d6e5ee8172b0242c8fa72d13cfe2b8d2b6601468836908a7dfe8b78a3bbb'
|
||||||
|
'0a72687a647937500f31b25fd23c8a6f34642d3c2a0a26c9153a965faea3ea5c'
|
||||||
'62496f9ca788996181ef145f96ad26291282fcc3fb95cdc04080dcf84365be33'
|
'62496f9ca788996181ef145f96ad26291282fcc3fb95cdc04080dcf84365be33'
|
||||||
'7fd8e776209dac98627453fda754bdf9aff4a09f27cb0b3766d7983612eb3c74'
|
'7fd8e776209dac98627453fda754bdf9aff4a09f27cb0b3766d7983612eb3c74'
|
||||||
'bd0460d436e3ade46ea20b0087f8ccf62dce00f96de76f04b74620f81e63a2dc'
|
'bd0460d436e3ade46ea20b0087f8ccf62dce00f96de76f04b74620f81e63a2dc'
|
||||||
|
13116
linux57-tkg/linux57-tkg-patches/0004-5.7-ck1.patch
Normal file
13116
linux57-tkg/linux57-tkg-patches/0004-5.7-ck1.patch
Normal file
File diff suppressed because it is too large
Load Diff
78
linux57-tkg/linux57-tkg-patches/0004-glitched-muqss.patch
Normal file
78
linux57-tkg/linux57-tkg-patches/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.
|
@ -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…
x
Reference in New Issue
Block a user