summaryrefslogtreecommitdiff
path: root/unscrew-ck1.patch
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2020-06-11 22:50:29 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2020-06-11 22:50:29 -0700
commit616e56a87957562d15a4ec41b7ffe48de7a987e3 (patch)
treec4239b171c17eaf79a2c32c58541bdad98a3c362 /unscrew-ck1.patch
parentUpdated to 5.7.1 (diff)
downloadlinux-ck-616e56a87957562d15a4ec41b7ffe48de7a987e3.tar.xz
Updated to 5.7.2
Applied hotfix
Diffstat (limited to 'unscrew-ck1.patch')
-rw-r--r--unscrew-ck1.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/unscrew-ck1.patch b/unscrew-ck1.patch
new file mode 100644
index 0000000..67e87c8
--- /dev/null
+++ b/unscrew-ck1.patch
@@ -0,0 +1,31 @@
+From 0b69e633d6b0b08ae8547dc4099c8c0985019553 Mon Sep 17 00:00:00 2001
+From: Con Kolivas <kernel@kolivas.org>
+Date: Thu, 11 Jun 2020 21:48:56 +1000
+Subject: [PATCH] Fix cpufreq_cooling build.
+
+---
+ kernel/sched/MuQSS.c | 11 +++++++++++
+ 1 file changed, 11 insertions(+)
+
+diff --git a/kernel/sched/MuQSS.c b/kernel/sched/MuQSS.c
+index 18a9b4a23e44e..c55c158e8b8e4 100644
+--- a/kernel/sched/MuQSS.c
++++ b/kernel/sched/MuQSS.c
+@@ -3246,6 +3246,17 @@ static inline u64 do_task_delta_exec(struct task_struct *p, struct rq *rq)
+ return ns;
+ }
+
++DEFINE_PER_CPU(unsigned long, thermal_pressure);
++
++void arch_set_thermal_pressure(struct cpumask *cpus,
++ unsigned long th_pressure)
++{
++ int cpu;
++
++ for_each_cpu(cpu, cpus)
++ WRITE_ONCE(per_cpu(thermal_pressure, cpu), th_pressure);
++}
++
+ /*
+ * Return accounted runtime for the task.
+ * Return separately the current's pending runtime that have not been