summaryrefslogtreecommitdiffstats
path: root/include/drm/drmP.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-08-02 13:56:02 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-08-11 10:48:03 +0200
commitc07dcd61a0e57c6840c23d90cb1beddad7d682a1 (patch)
tree8b30f2db8c5346962c418a4cd817442d8386c066 /include/drm/drmP.h
parente4672e55d6f3428ae9f27542e05c891f2af71051 (diff)
downloadlinux-c07dcd61a0e57c6840c23d90cb1beddad7d682a1.tar.gz
linux-c07dcd61a0e57c6840c23d90cb1beddad7d682a1.tar.bz2
linux-c07dcd61a0e57c6840c23d90cb1beddad7d682a1.zip
drm: Document device unplug infrastructure
While at it, also ocd and give them a consistent drm_dev_ prefix, like the other device instance functionality. Plus move the functions into the right places. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20170802115604.12734-3-daniel.vetter@ffwll.ch
Diffstat (limited to 'include/drm/drmP.h')
-rw-r--r--include/drm/drmP.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h
index 3031c256105e..7277783a4ff0 100644
--- a/include/drm/drmP.h
+++ b/include/drm/drmP.h
@@ -320,19 +320,6 @@ static __inline__ int drm_core_check_feature(struct drm_device *dev,
return ((dev->driver->driver_features & feature) ? 1 : 0);
}
-static inline void drm_device_set_unplugged(struct drm_device *dev)
-{
- smp_wmb();
- atomic_set(&dev->unplugged, 1);
-}
-
-static inline int drm_device_is_unplugged(struct drm_device *dev)
-{
- int ret = atomic_read(&dev->unplugged);
- smp_rmb();
- return ret;
-}
-
/******************************************************************/
/** \name Internal function definitions */
/*@{*/