From 616e56a87957562d15a4ec41b7ffe48de7a987e3 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Thu, 11 Jun 2020 22:50:29 -0700 Subject: Updated to 5.7.2 Applied hotfix --- unscrew-ck1.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 unscrew-ck1.patch (limited to 'unscrew-ck1.patch') 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 +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 -- cgit v1.2.1