diff options
| author | thorpej <thorpej@NetBSD.org> | 1999-07-06 21:44:09 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 1999-07-06 21:44:09 +0000 |
| commit | 7b3258b6a7addf77d3e4ceddce6ef0df5a242711 (patch) | |
| tree | a6d6dd63e13c9f7b2b16825cb70b293fd182709a /sys/dev | |
| parent | eeebdec53eadddf91374f34b32350f7ffe4d07a1 (diff) | |
Make the kthread API a bit more friendly to loadable kernel modules.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/i82365.c | 6 | ||||
| -rw-r--r-- | sys/dev/ic/tcic2.c | 4 | ||||
| -rw-r--r-- | sys/dev/sbus/stp4020.c | 6 | ||||
| -rw-r--r-- | sys/dev/usb/usb.c | 6 |
4 files changed, 11 insertions, 11 deletions
diff --git a/sys/dev/ic/i82365.c b/sys/dev/ic/i82365.c index f925d5c9fe0..0fa22ff3dd6 100644 --- a/sys/dev/ic/i82365.c +++ b/sys/dev/ic/i82365.c @@ -1,4 +1,4 @@ -/* $NetBSD: i82365.c,v 1.23 1999/02/19 03:14:00 mycroft Exp $ */ +/* $NetBSD: i82365.c,v 1.24 1999/07/06 21:44:10 thorpej Exp $ */ #define PCICDEBUG @@ -370,7 +370,7 @@ pcic_create_event_thread(arg) panic("pcic_create_event_thread: unknown pcic socket"); } - if (kthread_create(pcic_event_thread, h, &h->event_thread, + if (kthread_create1(pcic_event_thread, h, &h->event_thread, "%s,%s", h->sc->dev.dv_xname, cs)) { printf("%s: unable to create event thread for sock 0x%02x\n", h->sc->dev.dv_xname, h->sock); @@ -478,7 +478,7 @@ pcic_init_socket(h) if (h->event_thread != NULL) panic("pcic_attach_socket: event thread"); #endif - kthread_create_deferred(pcic_create_event_thread, h); + kthread_create(pcic_create_event_thread, h); /* set up the card to interrupt on card detect */ diff --git a/sys/dev/ic/tcic2.c b/sys/dev/ic/tcic2.c index 77559034af9..0050e72269d 100644 --- a/sys/dev/ic/tcic2.c +++ b/sys/dev/ic/tcic2.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcic2.c,v 1.1 1999/03/23 20:04:14 bad Exp $ */ +/* $NetBSD: tcic2.c,v 1.2 1999/07/06 21:44:11 thorpej Exp $ */ #undef TCICDEBUG @@ -453,7 +453,7 @@ tcic_create_event_thread(arg) panic("tcic_create_event_thread: unknown tcic socket"); } - if (kthread_create(tcic_event_thread, h, &h->event_thread, + if (kthread_create1(tcic_event_thread, h, &h->event_thread, "%s,%s", h->sc->dev.dv_xname, cs)) { printf("%s: unable to create event thread for sock 0x%02x\n", h->sc->dev.dv_xname, h->sock); diff --git a/sys/dev/sbus/stp4020.c b/sys/dev/sbus/stp4020.c index 7221a3a5dd1..feb0f2b41d1 100644 --- a/sys/dev/sbus/stp4020.c +++ b/sys/dev/sbus/stp4020.c @@ -1,4 +1,4 @@ -/* $NetBSD: stp4020.c,v 1.4 1999/03/29 21:30:48 pk Exp $ */ +/* $NetBSD: stp4020.c,v 1.5 1999/07/06 21:44:11 thorpej Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -395,7 +395,7 @@ stp4020attach(parent, self, aux) * insert/removal events. */ SIMPLEQ_INIT(&sc->events); - kthread_create_deferred(stp4020_create_event_thread, sc); + kthread_create(stp4020_create_event_thread, sc); for (i = 0; i < STP4020_NSOCK; i++) { struct stp4020_socket *h = &sc->sc_socks[i]; @@ -458,7 +458,7 @@ stp4020_create_event_thread(arg) struct stp4020_softc *sc = arg; const char *name = sc->sc_dev.dv_xname; - if (kthread_create(stp4020_event_thread, sc, &sc->event_thread, + if (kthread_create1(stp4020_event_thread, sc, &sc->event_thread, "%s", name)) { panic("%s: unable to create event thread", name); } diff --git a/sys/dev/usb/usb.c b/sys/dev/usb/usb.c index 227831e1b61..4c4f871b102 100644 --- a/sys/dev/usb/usb.c +++ b/sys/dev/usb/usb.c @@ -1,4 +1,4 @@ -/* $NetBSD: usb.c,v 1.13 1999/06/30 06:44:23 augustss Exp $ */ +/* $NetBSD: usb.c,v 1.14 1999/07/06 21:44:12 thorpej Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -175,7 +175,7 @@ USB_ATTACH(usb) } sc->sc_bus->use_polling = 0; - kthread_create_deferred(usb_create_event_thread, sc); + kthread_create(usb_create_event_thread, sc); USB_ATTACH_SUCCESS_RETURN; } @@ -186,7 +186,7 @@ usb_create_event_thread(arg) { struct usb_softc *sc = arg; - if (kthread_create(usb_event_thread, sc, &sc->event_thread, + if (kthread_create1(usb_event_thread, sc, &sc->event_thread, "%s", sc->sc_dev.dv_xname)) { printf("%s: unable to create event thread for\n", sc->sc_dev.dv_xname); |
