OSDN Git Service

drm/vmwgfx: Use a per-device semaphore for reservation protection
[android-x86/kernel.git] / drivers / gpu / drm / vmwgfx / vmwgfx_drv.h
index 0783155..8c6b71f 100644 (file)
@@ -487,6 +487,11 @@ struct vmw_private {
        uint32_t num_3d_resources;
 
        /*
+        * Replace this with an rwsem as soon as we have down_xx_interruptible()
+        */
+       struct ttm_lock reservation_sem;
+
+       /*
         * Query processing. These members
         * are protected by the cmdbuf mutex.
         */