summaryrefslogtreecommitdiffstats
path: root/sys/dev/vr/if_vrreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/vr/if_vrreg.h')
-rw-r--r--sys/dev/vr/if_vrreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/vr/if_vrreg.h b/sys/dev/vr/if_vrreg.h
index 043c3ed..2f8e810 100644
--- a/sys/dev/vr/if_vrreg.h
+++ b/sys/dev/vr/if_vrreg.h
@@ -475,6 +475,7 @@ struct vr_softc {
#define VR_LOCK(_sc) mtx_lock(&(_sc)->vr_mtx)
#define VR_UNLOCK(_sc) mtx_unlock(&(_sc)->vr_mtx)
+#define VR_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->vr_mtx, MA_OWNED)
/*
* register space access macros
OpenPOWER on IntegriCloud