linux510/512/513-tkg: Update cacule patchsets

This required splitting parts of the glitched base for CFS-only kernels (the patch was common to all schedulers before, even though only CFS was effectively making use of the changes), which were moved to a 0003-glitched-cfs-additions.patch file.

https://github.com/hamadmarri/cacule-cpu-scheduler
This commit is contained in:
Tk-Glitch
2021-07-05 13:21:57 +02:00
parent 35aebf772c
commit 654f290f6c
11 changed files with 515 additions and 251 deletions

View File

@@ -0,0 +1,22 @@
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 6b3b59cc51d6..2a0072192c3d 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -81,10 +95,17 @@ unsigned int sysctl_sched_child_runs_first __read_mostly;
*
* (default: 1 msec * (1 + ilog(ncpus)), units: nanoseconds)
*/
+#ifdef CONFIG_ZENIFY
+unsigned int sysctl_sched_wakeup_granularity = 500000UL;
+static unsigned int normalized_sysctl_sched_wakeup_granularity = 500000UL;
+
+const_debug unsigned int sysctl_sched_migration_cost = 50000UL;
+#else
unsigned int sysctl_sched_wakeup_granularity = 1000000UL;
static unsigned int normalized_sysctl_sched_wakeup_granularity = 1000000UL;
const_debug unsigned int sysctl_sched_migration_cost = 500000UL;
+#endif
int sched_thermal_decay_shift;
static int __init setup_sched_thermal_decay_shift(char *str)