Port the prjc fix for 5.16/5.17 to 5.15 for 5.15.27 changes
This commit is contained in:
@@ -666,7 +666,7 @@ new file mode 100644
|
||||
index 000000000000..8b0ddbdd24e4
|
||||
--- /dev/null
|
||||
+++ b/kernel/sched/alt_core.c
|
||||
@@ -0,0 +1,7627 @@
|
||||
@@ -0,0 +1,7634 @@
|
||||
+/*
|
||||
+ * kernel/sched/alt_core.c
|
||||
+ *
|
||||
@@ -3623,7 +3623,7 @@ index 000000000000..8b0ddbdd24e4
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+void sched_post_fork(struct task_struct *p, struct kernel_clone_args *kargs)
|
||||
+void sched_cgroup_fork(struct task_struct *p, struct kernel_clone_args *kargs)
|
||||
+{
|
||||
+ unsigned long flags;
|
||||
+ struct rq *rq;
|
||||
@@ -3666,6 +3666,13 @@ index 000000000000..8b0ddbdd24e4
|
||||
+ raw_spin_unlock_irqrestore(&p->pi_lock, flags);
|
||||
+}
|
||||
+
|
||||
+void sched_post_fork(struct task_struct *p)
|
||||
+{
|
||||
+#ifdef CONFIG_UCLAMP_TASK
|
||||
+ uclamp_post_fork(p);
|
||||
+#endif
|
||||
+}
|
||||
+
|
||||
+#ifdef CONFIG_SCHEDSTATS
|
||||
+
|
||||
+DEFINE_STATIC_KEY_FALSE(sched_schedstats);
|
||||
|
Reference in New Issue
Block a user