]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/gpu/drm/radeon/radeon_ttm.c
drm/ttm: introduce utility function to free an allocated memory node
authorBen Skeggs <bskeggs@redhat.com>
Wed, 4 Aug 2010 02:07:08 +0000 (12:07 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 5 Oct 2010 00:00:34 +0000 (10:00 +1000)
commit42311ff90dc8746bd81427b2ed6efda9af791b77
treef41e0b9703463f712e1af5a817f0c81639336a9b
parenta845fff841b13678b2d80f10425aba87db840e4a
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>
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/radeon/radeon_ttm.c
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
include/drm/ttm/ttm_bo_driver.h