diff options
author | jasone <jasone@FreeBSD.org> | 2001-01-21 22:34:43 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 2001-01-21 22:34:43 +0000 |
commit | ec55088093012f2db666d7599cae4123dd085f2c (patch) | |
tree | d64bdd091fc1c34cba613fcfbfadc782ea4b2487 /sys/net/if.c | |
parent | 1ef4c9883a65101fd59ee3b98eaf136cf34d7bd9 (diff) | |
download | FreeBSD-src-ec55088093012f2db666d7599cae4123dd085f2c.zip FreeBSD-src-ec55088093012f2db666d7599cae4123dd085f2c.tar.gz |
Move most of sys/mutex.h into kern/kern_mutex.c, thereby making the mutex
inline functions non-inlined. Hide parts of the mutex implementation that
should not be exposed.
Make sure that WITNESS code is not executed during boot until the mutexes
are fully initialized by SI_SUB_MUTEX (the original motivation for this
commit).
Submitted by: peter
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 0c6fc84..8239b4d 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -116,7 +116,8 @@ ifinit(dummy) ifp->if_name, ifp->if_unit); ifp->if_snd.ifq_maxlen = ifqmaxlen; } - if (ifp->if_snd.ifq_mtx.mtx_description == NULL) { + /* XXX This is an access violation of the mutex internals. */ + if (ifp->if_snd.ifq_mtx.mtx_flags == 0) { printf("%s%d XXX: driver didn't initialize queue mtx\n", ifp->if_name, ifp->if_unit); mtx_init(&ifp->if_snd.ifq_mtx, "unknown", MTX_DEF); |