diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-01-25 20:58:13 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-01-25 20:58:13 +0000 |
commit | 405e6e935990c546fcd0580700b6329072ef7645 (patch) | |
tree | 65b0aefa7990c0bba6301964e9365ac157847735 /sys/dev | |
parent | a8177249d03774fb08a2b601a50d2ac83b18739b (diff) |
kthread_create_deferred() do the things right, no need for
playing with cold global.
ok miod@ drahn@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/usb/if_wi_usb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/usb/if_wi_usb.c b/sys/dev/usb/if_wi_usb.c index c1395cbe94d..60083f5bcdc 100644 --- a/sys/dev/usb/if_wi_usb.c +++ b/sys/dev/usb/if_wi_usb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wi_usb.c,v 1.26 2005/12/03 21:11:48 brad Exp $ */ +/* $OpenBSD: if_wi_usb.c,v 1.27 2006/01/25 20:58:12 grange Exp $ */ /* * Copyright (c) 2003 Dale Rahn. All rights reserved. @@ -375,10 +375,7 @@ USB_ATTACH(wi_usb) sc->wi_usb_attached = 1; - if (cold) - kthread_create_deferred(wi_usb_start_thread, sc); - else - wi_usb_start_thread(sc); + kthread_create_deferred(wi_usb_start_thread, sc); usbd_add_drv_event(USB_EVENT_DRIVER_ATTACH, sc->wi_usb_udev, USBDEV(sc->wi_usb_dev)); |