diff options
author | Christian König <christian.koenig@amd.com> | 2022-02-14 07:28:38 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-02-14 14:34:36 +0100 |
commit | 90d4aa20c8cc76f5baecd423b5dc289b899ebc42 (patch) | |
tree | b8acfea53ea8eb6cfa99151839accdc9e4643d3f /drivers/gpu | |
parent | 8f8dbb35a6282f5fcedac48f3fea3eabbb6b3703 (diff) | |
download | linux-stable-90d4aa20c8cc76f5baecd423b5dc289b899ebc42.tar.gz linux-stable-90d4aa20c8cc76f5baecd423b5dc289b899ebc42.tar.bz2 linux-stable-90d4aa20c8cc76f5baecd423b5dc289b899ebc42.zip |
drm/ttm: fix resource manager size type and description
Leave the man->size units as driver defined.
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220214093439.2989-1-christian.koenig@amd.com
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_resource.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_resource.c b/drivers/gpu/drm/ttm/ttm_resource.c index 68344c90549b..8204b7062517 100644 --- a/drivers/gpu/drm/ttm/ttm_resource.c +++ b/drivers/gpu/drm/ttm/ttm_resource.c @@ -153,19 +153,19 @@ void ttm_resource_set_bo(struct ttm_resource *res, * * @man: memory manager object to init * @bdev: ttm device this manager belongs to - * @p_size: size managed area in pages. + * @size: size of managed resources in arbitrary units * * Initialise core parts of a manager object. */ void ttm_resource_manager_init(struct ttm_resource_manager *man, struct ttm_device *bdev, - unsigned long p_size) + uint64_t size) { unsigned i; spin_lock_init(&man->move_lock); man->bdev = bdev; - man->size = p_size; + man->size = size; for (i = 0; i < TTM_MAX_BO_PRIORITY; ++i) INIT_LIST_HEAD(&man->lru[i]); |