aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 9f8ef32cbc7a..0c969f4fade0 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -1246,7 +1246,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
1246 * parent's CPU). This avoids alot of nasty races. 1246 * parent's CPU). This avoids alot of nasty races.
1247 */ 1247 */
1248 p->cpus_allowed = current->cpus_allowed; 1248 p->cpus_allowed = current->cpus_allowed;
1249 p->nr_cpus_allowed = current->nr_cpus_allowed; 1249 p->rt.nr_cpus_allowed = current->rt.nr_cpus_allowed;
1250 if (unlikely(!cpu_isset(task_cpu(p), p->cpus_allowed) || 1250 if (unlikely(!cpu_isset(task_cpu(p), p->cpus_allowed) ||
1251 !cpu_online(task_cpu(p)))) 1251 !cpu_online(task_cpu(p))))
1252 set_task_cpu(p, smp_processor_id()); 1252 set_task_cpu(p, smp_processor_id());