obtain_clone_cpuid(): respect parent's CPU set

This commit is contained in:
Balazs Gerofi
2016-12-08 16:01:30 +09:00
parent 61fc4c5e55
commit 3cecafac59
3 changed files with 32 additions and 65 deletions

View File

@@ -2039,7 +2039,7 @@ unsigned long do_fork(int clone_flags, unsigned long newsp,
return -EINVAL;
}
cpuid = obtain_clone_cpuid();
cpuid = obtain_clone_cpuid(&old->cpu_set);
if (cpuid == -1) {
kprintf("do_fork,core not available\n");
return -EAGAIN;