Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:5.13 commit in: /
Date: Sun, 29 Aug 2021 14:49:01
Message-Id: 1630248158.5b2bc668fd015cecc3f1dbe007087a1705a0672e.mpagano@gentoo
1 commit: 5b2bc668fd015cecc3f1dbe007087a1705a0672e
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 29 14:42:38 2021 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 29 14:42:38 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5b2bc668
7
8 Bump BMQ Patch to v5.13-r3
9
10 Thanks to Ulenrich for reporting
11
12 Bug: https://bugs.gentoo.org/810925
13
14 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
15
16 0000_README | 2 +-
17 ...2.patch => 5020_BMQ-and-PDS-io-scheduler-v5.13-r3.patch | 14 ++++----------
18 2 files changed, 5 insertions(+), 11 deletions(-)
19
20 diff --git a/0000_README b/0000_README
21 index 72c942f..05f6b94 100644
22 --- a/0000_README
23 +++ b/0000_README
24 @@ -131,7 +131,7 @@ Patch: 5010_enable-cpu-optimizations-universal.patch
25 From: https://github.com/graysky2/kernel_compiler_patch
26 Desc: Kernel >= 5.8 patch enables gcc = v9+ optimizations for additional CPUs.
27
28 -Patch: 5020_BMQ-and-PDS-io-scheduler-v5.13-r2.patch
29 +Patch: 5020_BMQ-and-PDS-io-scheduler-v5.13-r3.patch
30 From: https://gitlab.com/alfredchen/linux-prjc
31 Desc: BMQ(BitMap Queue) Scheduler. A new CPU scheduler developed from PDS(incld). Inspired by the scheduler in zircon.
32
33
34 diff --git a/5020_BMQ-and-PDS-io-scheduler-v5.13-r2.patch b/5020_BMQ-and-PDS-io-scheduler-v5.13-r3.patch
35 similarity index 99%
36 rename from 5020_BMQ-and-PDS-io-scheduler-v5.13-r2.patch
37 rename to 5020_BMQ-and-PDS-io-scheduler-v5.13-r3.patch
38 index 72533b6..3d7e610 100644
39 --- a/5020_BMQ-and-PDS-io-scheduler-v5.13-r2.patch
40 +++ b/5020_BMQ-and-PDS-io-scheduler-v5.13-r3.patch
41 @@ -647,10 +647,10 @@ index 5fc9c9b70862..06b60d612535 100644
42 obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o
43 diff --git a/kernel/sched/alt_core.c b/kernel/sched/alt_core.c
44 new file mode 100644
45 -index 000000000000..e296d56e85f0
46 +index 000000000000..b10012b67435
47 --- /dev/null
48 +++ b/kernel/sched/alt_core.c
49 -@@ -0,0 +1,7227 @@
50 +@@ -0,0 +1,7221 @@
51 +/*
52 + * kernel/sched/alt_core.c
53 + *
54 @@ -720,7 +720,7 @@ index 000000000000..e296d56e85f0
55 +#define sched_feat(x) (0)
56 +#endif /* CONFIG_SCHED_DEBUG */
57 +
58 -+#define ALT_SCHED_VERSION "v5.13-r2"
59 ++#define ALT_SCHED_VERSION "v5.13-r3"
60 +
61 +/* rt_prio(prio) defined in include/linux/sched/rt.h */
62 +#define rt_task(p) rt_prio((p)->prio)
63 @@ -3974,15 +3974,9 @@ index 000000000000..e296d56e85f0
64 + struct task_struct *p = current;
65 + unsigned long flags;
66 + int dest_cpu;
67 -+ struct rq *rq;
68 +
69 + raw_spin_lock_irqsave(&p->pi_lock, flags);
70 -+ rq = this_rq();
71 -+
72 -+ if (rq != task_rq(p) || rq->nr_running < 2)
73 -+ goto unlock;
74 -+
75 -+ dest_cpu = select_task_rq(p);
76 ++ dest_cpu = cpumask_any(p->cpus_ptr);
77 + if (dest_cpu == smp_processor_id())
78 + goto unlock;
79 +