aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/sched_4bsd.c
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2008-03-02 21:34:57 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2008-03-02 21:34:57 +0000
commitf5a3ef99c2d117ec20bcf629c17cf7f3b1d9cd06 (patch)
tree8853895b20b7758e4ad4e38cdbb795fd8691f54c /sys/kern/sched_4bsd.c
parent8805ca53e76b31b5cea4ff6738f7c81c339e19d9 (diff)
downloadsrc-f5a3ef99c2d117ec20bcf629c17cf7f3b1d9cd06.tar.gz
src-f5a3ef99c2d117ec20bcf629c17cf7f3b1d9cd06.zip
Unbreak after cpuset: initialize td_cpuset in sched_fork_thread().
Notes
Notes: svn path=/head/; revision=176750
Diffstat (limited to 'sys/kern/sched_4bsd.c')
-rw-r--r--sys/kern/sched_4bsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c
index 0357ea7bdcf7..fb744038ee45 100644
--- a/sys/kern/sched_4bsd.c
+++ b/sys/kern/sched_4bsd.c
@@ -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);
}