summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thr.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-08-27 09:23:20 +0000
committerkib <kib@FreeBSD.org>2016-08-27 09:23:20 +0000
commit82bfa7f4de819264453641e3d8bf043bf9ee4702 (patch)
tree7206afbc7a60adc13dda653298edde984dbfd9dd /sys/kern/kern_thr.c
parented68073bb22032c818288c2901d4921776234a04 (diff)
downloadFreeBSD-src-82bfa7f4de819264453641e3d8bf043bf9ee4702.zip
FreeBSD-src-82bfa7f4de819264453641e3d8bf043bf9ee4702.tar.gz
MFC r303426:
Rewrite subr_sleepqueue.c use of callouts to not depend on the specifics of callout KPI.
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r--sys/kern/kern_thr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
index 10e7b2d..1af776c 100644
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -232,6 +232,7 @@ thread_create(struct thread *td, struct rtprio *rtp,
bzero(&newtd->td_startzero,
__rangeof(struct thread, td_startzero, td_endzero));
+ newtd->td_sleeptimo = 0;
bcopy(&td->td_startcopy, &newtd->td_startcopy,
__rangeof(struct thread, td_startcopy, td_endcopy));
newtd->td_proc = td->td_proc;
OpenPOWER on IntegriCloud