diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2013-08-25 14:53:39 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2013-08-25 14:53:39 +0000 |
commit | 7c851436c84561a5c770b6cfd51ec32d7add288d (patch) | |
tree | 3f1a1d6fc5b6abe872676055c27c4d6952c592ac /sys/dev/drm2/ttm | |
parent | 694c0fc1ca1d9aa2babd14763c096fc7bb3ef739 (diff) | |
download | FreeBSD-src-7c851436c84561a5c770b6cfd51ec32d7add288d.zip FreeBSD-src-7c851436c84561a5c770b6cfd51ec32d7add288d.tar.gz |
drm/ttm: Import Linux commit cc4c0c4de3c775be22072ec3251f2e581b63d9a0
Author: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Date: Tue Jan 15 14:57:28 2013 +0100
drm/ttm: unexport ttm_bo_wait_unreserved
All legitimate users of this function outside ttm_bo.c are gone, now
it's only an implementation detail.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Approved by: kib@
Diffstat (limited to 'sys/dev/drm2/ttm')
-rw-r--r-- | sys/dev/drm2/ttm/ttm_bo.c | 2 | ||||
-rw-r--r-- | sys/dev/drm2/ttm/ttm_bo_driver.h | 12 |
2 files changed, 1 insertions, 13 deletions
diff --git a/sys/dev/drm2/ttm/ttm_bo.c b/sys/dev/drm2/ttm/ttm_bo.c index b889d18..2ce375e 100644 --- a/sys/dev/drm2/ttm/ttm_bo.c +++ b/sys/dev/drm2/ttm/ttm_bo.c @@ -131,7 +131,7 @@ static void ttm_bo_release_list(struct ttm_buffer_object *bo) ttm_mem_global_free(bdev->glob->mem_glob, acc_size); } -int +static int ttm_bo_wait_unreserved_locked(struct ttm_buffer_object *bo, bool interruptible) { const char *wmsg; diff --git a/sys/dev/drm2/ttm/ttm_bo_driver.h b/sys/dev/drm2/ttm/ttm_bo_driver.h index cf2f0b1..68c5c0e 100644 --- a/sys/dev/drm2/ttm/ttm_bo_driver.h +++ b/sys/dev/drm2/ttm/ttm_bo_driver.h @@ -899,18 +899,6 @@ extern void ttm_bo_unreserve(struct ttm_buffer_object *bo); */ extern void ttm_bo_unreserve_locked(struct ttm_buffer_object *bo); -/** - * ttm_bo_wait_unreserved - * - * @bo: A pointer to a struct ttm_buffer_object. - * - * Wait for a struct ttm_buffer_object to become unreserved. - * This is typically used in the execbuf code to relax cpu-usage when - * a potential deadlock condition backoff. - */ -extern int ttm_bo_wait_unreserved_locked(struct ttm_buffer_object *bo, - bool interruptible); - /* * ttm_bo_util.c */ |