diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 4d57d9e3a6e9..2e9cc3139ec6 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1079,6 +1079,10 @@ static struct task_struct *copy_process(unsigned long clone_flags, | |||
1079 | } | 1079 | } |
1080 | mpol_fix_fork_child_flag(p); | 1080 | mpol_fix_fork_child_flag(p); |
1081 | #endif | 1081 | #endif |
1082 | #ifdef CONFIG_CPUSETS | ||
1083 | p->cpuset_mem_spread_rotor = node_random(p->mems_allowed); | ||
1084 | p->cpuset_slab_spread_rotor = node_random(p->mems_allowed); | ||
1085 | #endif | ||
1082 | #ifdef CONFIG_TRACE_IRQFLAGS | 1086 | #ifdef CONFIG_TRACE_IRQFLAGS |
1083 | p->irq_events = 0; | 1087 | p->irq_events = 0; |
1084 | #ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW | 1088 | #ifdef __ARCH_WANT_INTERRUPTS_ON_CTXSW |