summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/tempnam.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2016-03-31 18:10:29 +0000
committerjhb <jhb@FreeBSD.org>2016-03-31 18:10:29 +0000
commitb4f65d818daad9644baea7703a2c6eb8eb866c6d (patch)
treebe58a21069f30ff2a56358546aaa2c802be0beba /lib/libc/stdio/tempnam.c
parentfe839a29fe4ce5f4dffa814f4dae266be09a2ff2 (diff)
downloadFreeBSD-src-b4f65d818daad9644baea7703a2c6eb8eb866c6d.zip
FreeBSD-src-b4f65d818daad9644baea7703a2c6eb8eb866c6d.tar.gz
Rework handling of thread sleeps before timers are working.
Previously, calls to *sleep() and cv_*wait*() immediately returned during early boot. Instead, permit threads that request a sleep without a timeout to sleep as wakeup() works during early boot. Sleeps with timeouts are harder to emulate without working timers, so just punt and panic explicitly if any thread tries to use those before timers are working. Any threads that depend on timeouts should either wait until SI_SUB_KICK_SCHEDULER to start or they should use DELAY() until timers are available. Until APs are started earlier this should be a no-op as other kthreads shouldn't get a chance to start running until after timers are working regardless of when they were created. Reviewed by: kib Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D5724
Diffstat (limited to 'lib/libc/stdio/tempnam.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud