summarylogtreecommitdiffstats
path: root/fix-ck-broken-sleep2ram-5.4.48+.patch
diff options
context:
space:
mode:
authorshmilee2020-09-10 21:51:12 +0800
committershmilee2020-09-10 21:51:12 +0800
commit692c44f1dd3870cc830b51c3acd76ff5ab3c37cb (patch)
tree3ce23613826c0d32db16c1eea9af05a7a6a36035 /fix-ck-broken-sleep2ram-5.4.48+.patch
parent50bbbf522f7502d0a492763fe5a98cbb57285cff (diff)
downloadaur-692c44f1dd3870cc830b51c3acd76ff5ab3c37cb.tar.gz
test: LTS 5.4.64, try zen patch, fix muqss suspend problem
Diffstat (limited to 'fix-ck-broken-sleep2ram-5.4.48+.patch')
-rw-r--r--fix-ck-broken-sleep2ram-5.4.48+.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/fix-ck-broken-sleep2ram-5.4.48+.patch b/fix-ck-broken-sleep2ram-5.4.48+.patch
new file mode 100644
index 000000000000..b43e9db1a568
--- /dev/null
+++ b/fix-ck-broken-sleep2ram-5.4.48+.patch
@@ -0,0 +1,31 @@
+From fb7e2cfaf61cf5f9c2336331e73296f455bd2d51 Mon Sep 17 00:00:00 2001
+From: Steven Barrett <steven@liquorix.net>
+Date: Sat, 27 Jun 2020 17:32:41 -0500
+Subject: [PATCH] muqss: Revert invocation of "finish_cpu" when offlining core
+
+Backporting the equivalent change in sched/core.c to sched/MuQSS.c in
+function, idle_task_exit, causes an oops at boot with MuQSS.
+
+Instead, make an exception for MuQSS so "finish_cpu" is not executed
+while running MuQSS and retain the original "idle_task_exit"
+implementation.
+---
+ kernel/cpu.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/kernel/cpu.c b/kernel/cpu.c
+index 244d305443773..90b77028233b0 100644
+--- a/kernel/cpu.c
++++ b/kernel/cpu.c
+@@ -1565,7 +1565,11 @@ static struct cpuhp_step cpuhp_hp_states[] = {
+ [CPUHP_BRINGUP_CPU] = {
+ .name = "cpu:bringup",
+ .startup.single = bringup_cpu,
++#ifdef CONFIG_SCHED_MUQSS
++ .teardown.single = NULL,
++#else
+ .teardown.single = finish_cpu,
++#endif
+ .cant_stop = true,
+ },
+ /* Final state before CPU kills itself */