Files
linux-tkg/linux-tkg-patches/5.13/0003-glitched-cfs-additions.patch
Tk-Glitch 654f290f6c 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
2021-07-05 13:21:57 +02:00

23 lines
838 B
Diff

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)