@@ -647,10 +647,10 @@ index 5fc9c9b70862..06b60d612535 100644
|
||||
obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o
|
||||
diff --git a/kernel/sched/alt_core.c b/kernel/sched/alt_core.c
|
||||
new file mode 100644
|
||||
index 000000000000..e296d56e85f0
|
||||
index 000000000000..b10012b67435
|
||||
--- /dev/null
|
||||
+++ b/kernel/sched/alt_core.c
|
||||
@@ -0,0 +1,7227 @@
|
||||
@@ -0,0 +1,7221 @@
|
||||
+/*
|
||||
+ * kernel/sched/alt_core.c
|
||||
+ *
|
||||
@@ -720,7 +720,7 @@ index 000000000000..e296d56e85f0
|
||||
+#define sched_feat(x) (0)
|
||||
+#endif /* CONFIG_SCHED_DEBUG */
|
||||
+
|
||||
+#define ALT_SCHED_VERSION "v5.13-r2"
|
||||
+#define ALT_SCHED_VERSION "v5.13-r3"
|
||||
+
|
||||
+/* rt_prio(prio) defined in include/linux/sched/rt.h */
|
||||
+#define rt_task(p) rt_prio((p)->prio)
|
||||
@@ -3974,15 +3974,9 @@ index 000000000000..e296d56e85f0
|
||||
+ struct task_struct *p = current;
|
||||
+ unsigned long flags;
|
||||
+ int dest_cpu;
|
||||
+ struct rq *rq;
|
||||
+
|
||||
+ raw_spin_lock_irqsave(&p->pi_lock, flags);
|
||||
+ rq = this_rq();
|
||||
+
|
||||
+ if (rq != task_rq(p) || rq->nr_running < 2)
|
||||
+ goto unlock;
|
||||
+
|
||||
+ dest_cpu = select_task_rq(p);
|
||||
+ dest_cpu = cpumask_any(p->cpus_ptr);
|
||||
+ if (dest_cpu == smp_processor_id())
|
||||
+ goto unlock;
|
||||
+
|
Reference in New Issue
Block a user