diff options
author | Christian König <christian.koenig@amd.com> | 2018-02-21 13:02:06 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-26 23:09:45 -0500 |
commit | 3231a7696e22538529e9ee3500f2116a40a22734 (patch) | |
tree | c79104385a8c29a22086477144f373a38efa4b1e /drivers/gpu/drm/ttm/ttm_page_alloc.c | |
parent | 38392633627c60ca8a1e90106055c85b5215a494 (diff) |
drm/ttm: drop ttm->glob
The pointer is available as ttm->bdev->glob as well.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_page_alloc.c')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_page_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c b/drivers/gpu/drm/ttm/ttm_page_alloc.c index 5edcd896cd53..2c28c4568c5f 100644 --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c | |||
@@ -1072,6 +1072,7 @@ void ttm_page_alloc_fini(void) | |||
1072 | static void | 1072 | static void |
1073 | ttm_pool_unpopulate_helper(struct ttm_tt *ttm, unsigned mem_count_update) | 1073 | ttm_pool_unpopulate_helper(struct ttm_tt *ttm, unsigned mem_count_update) |
1074 | { | 1074 | { |
1075 | struct ttm_mem_global *mem_glob = ttm->bdev->glob->mem_glob; | ||
1075 | unsigned i; | 1076 | unsigned i; |
1076 | 1077 | ||
1077 | if (mem_count_update == 0) | 1078 | if (mem_count_update == 0) |
@@ -1081,8 +1082,7 @@ ttm_pool_unpopulate_helper(struct ttm_tt *ttm, unsigned mem_count_update) | |||
1081 | if (!ttm->pages[i]) | 1082 | if (!ttm->pages[i]) |
1082 | continue; | 1083 | continue; |
1083 | 1084 | ||
1084 | ttm_mem_global_free_page(ttm->glob->mem_glob, ttm->pages[i], | 1085 | ttm_mem_global_free_page(mem_glob, ttm->pages[i], PAGE_SIZE); |
1085 | PAGE_SIZE); | ||
1086 | } | 1086 | } |
1087 | 1087 | ||
1088 | put_pages: | 1088 | put_pages: |
@@ -1093,7 +1093,7 @@ put_pages: | |||
1093 | 1093 | ||
1094 | int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) | 1094 | int ttm_pool_populate(struct ttm_tt *ttm, struct ttm_operation_ctx *ctx) |
1095 | { | 1095 | { |
1096 | struct ttm_mem_global *mem_glob = ttm->glob->mem_glob; | 1096 | struct ttm_mem_global *mem_glob = ttm->bdev->glob->mem_glob; |
1097 | unsigned i; | 1097 | unsigned i; |
1098 | int ret; | 1098 | int ret; |
1099 | 1099 | ||