summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index 46fa97c..d4846dd 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -79,7 +79,7 @@ kthread_create(void (*func)(void *), void *arg,
struct thread *td;
struct proc *p2;
- if (!proc0.p_stats /* || proc0.p_stats->p_start.tv_sec == 0 */)
+ if (!proc0.p_stats)
panic("kthread_create called too soon");
error = fork1(&thread0, RFMEM | RFFDG | RFPROC | RFSTOPPED | flags,
OpenPOWER on IntegriCloud