#include <sys/sx.h>
typedef enum {
- MUTEX_DEFAULT = 6 /* kernel default mutex */
+ MUTEX_DEFAULT = 0 /* kernel default mutex */
} kmutex_type_t;
#define MUTEX_HELD(x) (mutex_owned(x))
#define mutex_init(lock, desc, type, arg) do { \
const char *_name; \
- ASSERT((type) == 0 || (type) == MUTEX_DEFAULT); \
- KASSERT(((lock)->lock_object.lo_flags & LO_ALLMASK) != \
- LO_EXPECTED, ("lock %s already initialized", #lock)); \
+ ASSERT((type) == MUTEX_DEFAULT); \
for (_name = #lock; *_name != '\0'; _name++) { \
if (*_name >= 'a' && *_name <= 'z') \
break; \