From dcf8897ad7eff35e169c166d04d58e8d04325667 Mon Sep 17 00:00:00 2001 From: marcel Date: Sun, 2 Mar 2008 21:34:57 +0000 Subject: [PATCH] Unbreak after cpuset: initialize td_cpuset in sched_fork_thread(). --- sys/kern/sched_4bsd.c | 2 ++ 1 file changed, 2 insertions(+) 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 #include +#include #include #include #include @@ -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); }