aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/drm/drm_drv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h
index 35af23f5fa0d..e32c12877bc5 100644
--- a/include/drm/drm_drv.h
+++ b/include/drm/drm_drv.h
@@ -643,6 +643,10 @@ void drm_dev_unplug(struct drm_device *dev);
643 * Unplugging itself is singalled through drm_dev_unplug(). If a device is 643 * Unplugging itself is singalled through drm_dev_unplug(). If a device is
644 * unplugged, these two functions guarantee that any store before calling 644 * unplugged, these two functions guarantee that any store before calling
645 * drm_dev_unplug() is visible to callers of this function after it completes 645 * drm_dev_unplug() is visible to callers of this function after it completes
646 *
647 * WARNING: This function fundamentally races against drm_dev_unplug(). It is
648 * recommended that drivers instead use the underlying drm_dev_enter() and
649 * drm_dev_exit() function pairs.
646 */ 650 */
647static inline bool drm_dev_is_unplugged(struct drm_device *dev) 651static inline bool drm_dev_is_unplugged(struct drm_device *dev)
648{ 652{