diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2010-04-28 11:33:25 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-05-07 01:21:28 +0200 |
commit | 8cfe92d683a0041ac8e016a0b0a487c99a78f6c1 (patch) | |
tree | 5949c336ea881c9fb51aee811432125451fef45d /include | |
parent | drm/ttm: Remove some leftover debug messages. (diff) | |
download | linux-8cfe92d683a0041ac8e016a0b0a487c99a78f6c1.tar.xz linux-8cfe92d683a0041ac8e016a0b0a487c99a78f6c1.zip |
drm/ttm: Remove the ttm_bo_block_reservation() function.
It's unused and buggy in its current form, since it can place a bo
in the reserved state without removing it from lru lists.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to '')
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index e929c27ede22..6b9db917e717 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h @@ -789,34 +789,6 @@ extern void ttm_bo_unreserve(struct ttm_buffer_object *bo); extern int ttm_bo_wait_unreserved(struct ttm_buffer_object *bo, bool interruptible); -/** - * ttm_bo_block_reservation - * - * @bo: A pointer to a struct ttm_buffer_object. - * @interruptible: Use interruptible sleep when waiting. - * @no_wait: Don't sleep, but rather return -EBUSY. - * - * Block reservation for validation by simply reserving the buffer. - * This is intended for single buffer use only without eviction, - * and thus needs no deadlock protection. - * - * Returns: - * -EBUSY: If no_wait == 1 and the buffer is already reserved. - * -ERESTARTSYS: If interruptible == 1 and the process received a signal - * while sleeping. - */ -extern int ttm_bo_block_reservation(struct ttm_buffer_object *bo, - bool interruptible, bool no_wait); - -/** - * ttm_bo_unblock_reservation - * - * @bo: A pointer to a struct ttm_buffer_object. - * - * Unblocks reservation leaving lru lists untouched. - */ -extern void ttm_bo_unblock_reservation(struct ttm_buffer_object *bo); - /* * ttm_bo_util.c */ |