summaryrefslogtreecommitdiff
path: root/sys/dev/apm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/apm')
-rw-r--r--sys/dev/apm/apm.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/sys/dev/apm/apm.c b/sys/dev/apm/apm.c
index 9819afff6be..130a01208a9 100644
--- a/sys/dev/apm/apm.c
+++ b/sys/dev/apm/apm.c
@@ -87,22 +87,11 @@ int apmdebug = 0;
* assert an exclusive lock any time thread context enters the
* APM module. This is both the APM thread itself, as well as
* user context.
- *
- * LOCKDOC Update: I don't know why this is implemented as a
- * macro with (void) cast here, but it breaks when LOCKDOC replaces
- * mutex_enter with a macro. So we circumvent that.
*/
-#ifdef LOCKDOC
-#define APM_LOCK(apmsc) \
- mutex_enter(&(apmsc)->sc_lock)
-#define APM_UNLOCK(apmsc) \
- mutex_exit(&(apmsc)->sc_lock)
-#else
#define APM_LOCK(apmsc) \
(void) mutex_enter(&(apmsc)->sc_lock)
#define APM_UNLOCK(apmsc) \
(void) mutex_exit(&(apmsc)->sc_lock)
-#endif
static void apm_event_handle(struct apm_softc *, u_int, u_int);
static void apm_periodic_check(struct apm_softc *);
@@ -924,4 +913,4 @@ apmkqfilter(dev_t dev, struct knote *kn)
APM_UNLOCK(sc);
return (0);
-}
+} \ No newline at end of file