|
@@ -3047,6 +3047,17 @@ unlock:
|
|
|
|
|
|
return new_cpu;
|
|
|
}
|
|
|
+
|
|
|
+/*
|
|
|
+ * Called immediately before a task is migrated to a new cpu; task_cpu(p) and
|
|
|
+ * cfs_rq_of(p) references at time of call are still valid and identify the
|
|
|
+ * previous cpu. However, the caller only guarantees p->pi_lock is held; no
|
|
|
+ * other assumptions, including the state of rq->lock, should be made.
|
|
|
+ */
|
|
|
+static void
|
|
|
+migrate_task_rq_fair(struct task_struct *p, int next_cpu)
|
|
|
+{
|
|
|
+}
|
|
|
#endif /* CONFIG_SMP */
|
|
|
|
|
|
static unsigned long
|
|
@@ -5607,6 +5618,7 @@ const struct sched_class fair_sched_class = {
|
|
|
|
|
|
#ifdef CONFIG_SMP
|
|
|
.select_task_rq = select_task_rq_fair,
|
|
|
+ .migrate_task_rq = migrate_task_rq_fair,
|
|
|
|
|
|
.rq_online = rq_online_fair,
|
|
|
.rq_offline = rq_offline_fair,
|