Unbreak after cpuset: initialize td_cpuset in sched_fork_thread().

This commit is contained in:
marcel 2008-03-02 21:34:57 +00:00
parent db38a25102
commit dcf8897ad7

View File

@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/cpuset.h>
#include <sys/kernel.h>
#include <sys/ktr.h>
#include <sys/lock.h>
@ -646,6 +647,7 @@ sched_fork_thread(struct thread *td, struct thread *childtd)
{
childtd->td_estcpu = td->td_estcpu;
childtd->td_lock = &sched_lock;
childtd->td_cpuset = cpuset_ref(td->td_cpuset);
sched_newthread(childtd);
}