init_process: Inherit parent cpu_set

Fujitsu: POSTK_DEBUG_TEMP_FIX_69
Refs: #1028
Change-Id: I1628bb5bf35fa670bb0019e1f3ae295277b1566e
This commit is contained in:
Ken Sato
2018-07-04 13:00:39 +09:00
committed by Masamichi Takagi
parent e770a22fa5
commit 4ce4c9f264

View File

@ -126,10 +126,8 @@ init_process(struct process *proc, struct process *parent)
proc->mpol_threshold = parent->mpol_threshold;
memcpy(proc->rlimit, parent->rlimit,
sizeof(struct rlimit) * MCK_RLIM_MAX);
#ifdef POSTK_DEBUG_TEMP_FIX_69 /* Fix problem not to inherit parent cpu_set. */
memcpy(&proc->cpu_set, &parent->cpu_set,
sizeof(proc->cpu_set));
#endif /* POSTK_DEBUG_TEMP_FIX_69 */
}
#ifdef POSTK_DEBUG_ARCH_DEP_63 /* struct process member initialize add */