summaryrefslogtreecommitdiff
path: root/sys/sys/lockmgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/lockmgr.h')
-rw-r--r--sys/sys/lockmgr.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/sys/lockmgr.h b/sys/sys/lockmgr.h
index 53e9f4c45d81..3aebc6ba03cb 100644
--- a/sys/sys/lockmgr.h
+++ b/sys/sys/lockmgr.h
@@ -48,7 +48,7 @@ struct mtx;
/*
* The general lock structure. Provides for multiple shared locks,
* upgrading from shared to exclusive, and sleeping until the lock
- * can be gained. The simple locks are defined in <machine/param.h>.
+ * can be gained.
*/
struct lock {
struct mtx *lk_interlock; /* lock on remaining fields */
@@ -221,22 +221,4 @@ void lockmgr_printinfo __P((struct lock *));
int lockstatus __P((struct lock *, struct proc *));
int lockcount __P((struct lock *));
-#ifdef SIMPLELOCK_DEBUG
-void _simple_unlock __P((struct simplelock *alp, const char *, int));
-#define simple_unlock(alp) _simple_unlock(alp, __FILE__, __LINE__)
-int _simple_lock_try __P((struct simplelock *alp, const char *, int));
-#define simple_lock_try(alp) _simple_lock_try(alp, __FILE__, __LINE__)
-void _simple_lock __P((struct simplelock *alp, const char *, int));
-#define simple_lock(alp) _simple_lock(alp, __FILE__, __LINE__)
-void simple_lock_init __P((struct simplelock *alp));
-#else /* !SIMPLELOCK_DEBUG */
-#if MAXCPU == 1 /* no multiprocessor locking is necessary */
-#define NULL_SIMPLELOCKS
-#define simple_lock_init(alp)
-#define simple_lock(alp)
-#define simple_lock_try(alp) (1) /* always succeeds */
-#define simple_unlock(alp)
-#endif /* MAXCPU == 1 */
-#endif /* !SIMPLELOCK_DEBUG */
-
#endif /* !_LOCK_H_ */