]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/drm/ttm/ttm_bo_api.h
Merge branch 'topic/asoc' into for-linus
[karo-tx-linux.git] / include / drm / ttm / ttm_bo_api.h
index 3e273e0b9417eed6f430963cfd679669a4f6daf1..267a86c74e2e5cc089dfb5c72a1f1da3dbdae721 100644 (file)
@@ -361,6 +361,23 @@ extern int ttm_bo_validate(struct ttm_buffer_object *bo,
  */
 extern void ttm_bo_unref(struct ttm_buffer_object **bo);
 
+/**
+ * ttm_bo_lock_delayed_workqueue
+ *
+ * Prevent the delayed workqueue from running.
+ * Returns
+ * True if the workqueue was queued at the time
+ */
+extern int ttm_bo_lock_delayed_workqueue(struct ttm_bo_device *bdev);
+
+/**
+ * ttm_bo_unlock_delayed_workqueue
+ *
+ * Allows the delayed workqueue to run.
+ */
+extern void ttm_bo_unlock_delayed_workqueue(struct ttm_bo_device *bdev,
+                                           int resched);
+
 /**
  * ttm_bo_synccpu_write_grab
  *