Add Linux lockdep cruft.
This commit is contained in:
parent
d9b36ad153
commit
0a708e1d5b
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mutex.h,v 1.4 2014/07/16 20:59:58 riastradh Exp $ */
|
||||
/* $NetBSD: mutex.h,v 1.5 2014/08/06 13:51:49 riastradh Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2013 The NetBSD Foundation, Inc.
|
||||
|
@ -40,6 +40,9 @@ struct mutex {
|
|||
kmutex_t mtx_lock;
|
||||
};
|
||||
|
||||
struct lock_class_key {
|
||||
};
|
||||
|
||||
/* Name collision. Pooh. */
|
||||
static inline void
|
||||
linux_mutex_init(struct mutex *mutex)
|
||||
|
@ -47,6 +50,14 @@ linux_mutex_init(struct mutex *mutex)
|
|||
mutex_init(&mutex->mtx_lock, MUTEX_DEFAULT, IPL_NONE);
|
||||
}
|
||||
|
||||
/* Lockdep stuff. */
|
||||
static inline void
|
||||
__mutex_init(struct mutex *mutex, const char *name __unused,
|
||||
struct lock_class_key *key __unused)
|
||||
{
|
||||
linux_mutex_init(mutex);
|
||||
}
|
||||
|
||||
/* Another name collision. */
|
||||
static inline void
|
||||
linux_mutex_destroy(struct mutex *mutex)
|
||||
|
|
Loading…
Reference in New Issue