diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-08-03 22:07:08 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-10-04 20:00:34 -0400 |
commit | 42311ff90dc8746bd81427b2ed6efda9af791b77 (patch) | |
tree | f41e0b9703463f712e1af5a817f0c81639336a9b /include | |
parent | a845fff841b13678b2d80f10425aba87db840e4a (diff) |
drm/ttm: introduce utility function to free an allocated memory node
Existing core code/drivers call drm_mm_put_block on ttm_mem_reg.mm_node
directly. Future patches will modify TTM behaviour in such a way that
ttm_mem_reg.mm_node doesn't necessarily belong to drm_mm.
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Acked-by: Thomas Hellström <thellstrom@vmware.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/ttm/ttm_bo_driver.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/drm/ttm/ttm_bo_driver.h b/include/drm/ttm/ttm_bo_driver.h index b87504235f18..6c694d86e03d 100644 --- a/include/drm/ttm/ttm_bo_driver.h +++ b/include/drm/ttm/ttm_bo_driver.h | |||
@@ -649,6 +649,10 @@ extern int ttm_bo_mem_space(struct ttm_buffer_object *bo, | |||
649 | struct ttm_mem_reg *mem, | 649 | struct ttm_mem_reg *mem, |
650 | bool interruptible, | 650 | bool interruptible, |
651 | bool no_wait_reserve, bool no_wait_gpu); | 651 | bool no_wait_reserve, bool no_wait_gpu); |
652 | |||
653 | extern void ttm_bo_mem_put(struct ttm_buffer_object *bo, | ||
654 | struct ttm_mem_reg *mem); | ||
655 | |||
652 | /** | 656 | /** |
653 | * ttm_bo_wait_for_cpu | 657 | * ttm_bo_wait_for_cpu |
654 | * | 658 | * |