|
@@ -1173,6 +1173,10 @@ void set_task_cpu(struct task_struct *p, unsigned int new_cpu)
|
|
WARN_ON_ONCE(debug_locks && !(lockdep_is_held(&p->pi_lock) ||
|
|
WARN_ON_ONCE(debug_locks && !(lockdep_is_held(&p->pi_lock) ||
|
|
lockdep_is_held(&task_rq(p)->lock)));
|
|
lockdep_is_held(&task_rq(p)->lock)));
|
|
#endif
|
|
#endif
|
|
|
|
+ /*
|
|
|
|
+ * Clearly, migrating tasks to offline CPUs is a fairly daft thing.
|
|
|
|
+ */
|
|
|
|
+ WARN_ON_ONCE(!cpu_online(new_cpu));
|
|
#endif
|
|
#endif
|
|
|
|
|
|
trace_sched_migrate_task(p, new_cpu);
|
|
trace_sched_migrate_task(p, new_cpu);
|