diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-11-23 19:08:56 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-11-23 19:08:56 +0000 |
commit | 17ea3d00ad6ab51534668f0fa412c36101fa7229 (patch) | |
tree | eb0194f91fff140acba852d73e1785ae62e67581 /sys/dev/usb/usb_port.h | |
parent | 6506a735d9eb4cb6f15cdff9ad2e4fff2e0e8bdb (diff) |
Create the init process earlier, before the root filesystem is mounted,
and have it stall on a semaphore. This allows all kthread creations which
could have been requested during autoconf to be processed before root
is mounted as well.
This causes umass devices attached to any usb with flags 1 (such as on macppc)
to configure properly instead of panicing the kernel at mountroot time.
From NetBSD; tested by various.
Diffstat (limited to 'sys/dev/usb/usb_port.h')
-rw-r--r-- | sys/dev/usb/usb_port.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_port.h b/sys/dev/usb/usb_port.h index c830e6e1820..dab4ad72e3a 100644 --- a/sys/dev/usb/usb_port.h +++ b/sys/dev/usb/usb_port.h @@ -1,4 +1,4 @@ -/* $OpenBSD: usb_port.h,v 1.52 2004/11/08 22:01:02 dlg Exp $ */ +/* $OpenBSD: usb_port.h,v 1.53 2004/11/23 19:08:54 miod Exp $ */ /* $NetBSD: usb_port.h,v 1.62 2003/02/15 18:33:30 augustss Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_port.h,v 1.21 1999/11/17 22:33:47 n_hibma Exp $ */ @@ -279,9 +279,6 @@ typedef struct proc *usb_proc_ptr; #define usb_kthread_create1 kthread_create #define usb_kthread_create kthread_create_deferred -#define config_pending_incr() -#define config_pending_decr() - typedef int usb_malloc_type; #define Ether_ifattach(ifp, eaddr) ether_ifattach(ifp) |