summaryrefslogtreecommitdiff
path: root/sys/dev/i2o/iop.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-01-06 11:06:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-01-06 11:06:14 +0000
commitd5781c14a83a3f1976711692f98ae6f036d660da (patch)
tree360f9d798759e93905fe9845aecf7f3a28aa3580 /sys/dev/i2o/iop.c
parent45afa5288ff22da1efbc49922ca61b3ff7c09e8f (diff)
Make sure the kthread does not run before iop_config_interrupts().
tested wilfried@
Diffstat (limited to 'sys/dev/i2o/iop.c')
-rw-r--r--sys/dev/i2o/iop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2o/iop.c b/sys/dev/i2o/iop.c
index f3fe74776a9..203801c57ad 100644
--- a/sys/dev/i2o/iop.c
+++ b/sys/dev/i2o/iop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iop.c,v 1.25 2004/07/09 21:38:20 pedro Exp $ */
+/* $OpenBSD: iop.c,v 1.26 2005/01/06 11:06:13 miod Exp $ */
/* $NetBSD: iop.c,v 1.12 2001/03/21 14:27:05 ad Exp $ */
/*-
@@ -408,7 +408,6 @@ iop_init(struct iop_softc *sc, const char *intrstr)
lockinit(&sc->sc_conflock, PRIBIO, "iopconf", 0, 0);
startuphook_establish((void (*)(void *))iop_config_interrupts, sc);
- kthread_create_deferred(iop_create_reconf_thread, sc);
return;
bail_out:
@@ -552,6 +551,7 @@ iop_config_interrupts(struct device *self)
return;
}
lockmgr(&sc->sc_conflock, LK_RELEASE, NULL, curproc);
+ kthread_create_deferred(iop_create_reconf_thread, sc);
}
/*