Commit f9ebec52 authored by Christian König's avatar Christian König Committed by Alex Deucher

drm/ttm: remove unsued options from ttm_mem_global_alloc_page

Nobody is actually using that, remove it.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 65da0d40
...@@ -546,8 +546,7 @@ int ttm_mem_global_alloc(struct ttm_mem_global *glob, uint64_t memory, ...@@ -546,8 +546,7 @@ int ttm_mem_global_alloc(struct ttm_mem_global *glob, uint64_t memory,
EXPORT_SYMBOL(ttm_mem_global_alloc); EXPORT_SYMBOL(ttm_mem_global_alloc);
int ttm_mem_global_alloc_page(struct ttm_mem_global *glob, int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
struct page *page, struct page *page)
bool no_wait, bool interruptible)
{ {
struct ttm_mem_zone *zone = NULL; struct ttm_mem_zone *zone = NULL;
...@@ -564,8 +563,7 @@ int ttm_mem_global_alloc_page(struct ttm_mem_global *glob, ...@@ -564,8 +563,7 @@ int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
if (glob->zone_dma32 && page_to_pfn(page) > 0x00100000UL) if (glob->zone_dma32 && page_to_pfn(page) > 0x00100000UL)
zone = glob->zone_kernel; zone = glob->zone_kernel;
#endif #endif
return ttm_mem_global_alloc_zone(glob, zone, PAGE_SIZE, no_wait, return ttm_mem_global_alloc_zone(glob, zone, PAGE_SIZE, false, false);
interruptible);
} }
void ttm_mem_global_free_page(struct ttm_mem_global *glob, struct page *page) void ttm_mem_global_free_page(struct ttm_mem_global *glob, struct page *page)
......
...@@ -882,8 +882,7 @@ int ttm_pool_populate(struct ttm_tt *ttm) ...@@ -882,8 +882,7 @@ int ttm_pool_populate(struct ttm_tt *ttm)
return -ENOMEM; return -ENOMEM;
} }
ret = ttm_mem_global_alloc_page(mem_glob, ttm->pages[i], ret = ttm_mem_global_alloc_page(mem_glob, ttm->pages[i]);
false, false);
if (unlikely(ret != 0)) { if (unlikely(ret != 0)) {
ttm_pool_unpopulate(ttm); ttm_pool_unpopulate(ttm);
return -ENOMEM; return -ENOMEM;
......
...@@ -902,8 +902,7 @@ int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, struct device *dev) ...@@ -902,8 +902,7 @@ int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, struct device *dev)
return -ENOMEM; return -ENOMEM;
} }
ret = ttm_mem_global_alloc_page(mem_glob, ttm->pages[i], ret = ttm_mem_global_alloc_page(mem_glob, ttm->pages[i]);
false, false);
if (unlikely(ret != 0)) { if (unlikely(ret != 0)) {
ttm_dma_unpopulate(ttm_dma, dev); ttm_dma_unpopulate(ttm_dma, dev);
return -ENOMEM; return -ENOMEM;
......
...@@ -150,8 +150,7 @@ extern int ttm_mem_global_alloc(struct ttm_mem_global *glob, uint64_t memory, ...@@ -150,8 +150,7 @@ extern int ttm_mem_global_alloc(struct ttm_mem_global *glob, uint64_t memory,
extern void ttm_mem_global_free(struct ttm_mem_global *glob, extern void ttm_mem_global_free(struct ttm_mem_global *glob,
uint64_t amount); uint64_t amount);
extern int ttm_mem_global_alloc_page(struct ttm_mem_global *glob, extern int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
struct page *page, struct page *page);
bool no_wait, bool interruptible);
extern void ttm_mem_global_free_page(struct ttm_mem_global *glob, extern void ttm_mem_global_free_page(struct ttm_mem_global *glob,
struct page *page); struct page *page);
extern size_t ttm_round_pot(size_t size); extern size_t ttm_round_pot(size_t size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment