summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-01-06 11:06:13 +0000
committermiod <miod@openbsd.org>2005-01-06 11:06:13 +0000
commitd0929ddb34a2d1c1f006958e19e9a5abf2cc9ff2 (patch)
tree89de2cd193716c8d3f23df5b20062f28e7012d99
parenttweaks; (diff)
downloadwireguard-openbsd-d0929ddb34a2d1c1f006958e19e9a5abf2cc9ff2.tar.xz
wireguard-openbsd-d0929ddb34a2d1c1f006958e19e9a5abf2cc9ff2.zip
Make sure the kthread does not run before iop_config_interrupts().
tested wilfried@
-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);
}
/*