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>
Showing
- drivers/gpu/drm/nouveau/nouveau_bo.c 2 additions, 12 deletionsdrivers/gpu/drm/nouveau/nouveau_bo.c
- drivers/gpu/drm/radeon/radeon_ttm.c 2 additions, 16 deletionsdrivers/gpu/drm/radeon/radeon_ttm.c
- drivers/gpu/drm/ttm/ttm_bo.c 15 additions, 11 deletionsdrivers/gpu/drm/ttm/ttm_bo.c
- drivers/gpu/drm/ttm/ttm_bo_util.c 1 addition, 8 deletionsdrivers/gpu/drm/ttm/ttm_bo_util.c
- include/drm/ttm/ttm_bo_driver.h 4 additions, 0 deletionsinclude/drm/ttm/ttm_bo_driver.h
Loading
Please register or sign in to comment