summaryrefslogtreecommitdiff
path: root/src/lib/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/thread.c')
-rw-r--r--src/lib/thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/thread.c b/src/lib/thread.c
index 7d5cdc5b8e..0393ca7db0 100644
--- a/src/lib/thread.c
+++ b/src/lib/thread.c
@@ -398,10 +398,10 @@ enum cb_err thread_join(struct thread_handle *handle)
if (handle->state == THREAD_UNINITIALIZED)
return CB_ERR_ARG;
- stopwatch_init(&sw);
-
printk(BIOS_SPEW, "waiting for thread\n");
+ stopwatch_init(&sw);
+
while (handle->state != THREAD_DONE)
assert(thread_yield() == 0);