]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: add ttm_bo_init_reserved
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 16 Feb 2017 09:56:40 +0000 (10:56 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:53:07 +0000 (23:53 -0400)
commit4519ccd9ffe119251b95734af26bc778c107cf16
tree052f119a5906d1756fe989b3082cba1a5de1fd1b
parent1d2fc933db4b4e94240d459301185dcd67fdd416
drm/ttm: add ttm_bo_init_reserved

This variant of ttm_bo_init returns the validated buffer object with
the reservation lock held when resv == NULL. This is convenient for
callers that want to use the BO immediately, e.g. for initializing its
contents.

Signed-off-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h