drm/ttm: remove unsued options from ttm_mem_global_alloc_page
authorChristian König <christian.koenig@amd.com>
Mon, 18 Sep 2017 13:45:11 +0000 (15:45 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 6 Oct 2017 21:44:14 +0000 (17:44 -0400)
Nobody is actually using that, remove it.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_memory.c
drivers/gpu/drm/ttm/ttm_page_alloc.c
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c
include/drm/ttm/ttm_memory.h

index 29855be96be096bc7622e398e119e5376ce4bd8e..4f9978cbc5bc857b707389e6798057dc14f3ae42 100644 (file)
@@ -546,8 +546,7 @@ int ttm_mem_global_alloc(struct ttm_mem_global *glob, uint64_t memory,
 EXPORT_SYMBOL(ttm_mem_global_alloc);
 
 int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
-                             struct page *page,
-                             bool no_wait, bool interruptible)
+                             struct page *page)
 {
 
        struct ttm_mem_zone *zone = NULL;
@@ -564,8 +563,7 @@ int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
        if (glob->zone_dma32 && page_to_pfn(page) > 0x00100000UL)
                zone = glob->zone_kernel;
 #endif
-       return ttm_mem_global_alloc_zone(glob, zone, PAGE_SIZE, no_wait,
-                                        interruptible);
+       return ttm_mem_global_alloc_zone(glob, zone, PAGE_SIZE, false, false);
 }
 
 void ttm_mem_global_free_page(struct ttm_mem_global *glob, struct page *page)
index 052e1f102113fd9333abbac0a0a25a9ba01fec1c..74f465ea914b95a27eb9f2b900eb818a6d7f5a9a 100644 (file)
@@ -882,8 +882,7 @@ int ttm_pool_populate(struct ttm_tt *ttm)
                        return -ENOMEM;
                }
 
-               ret = ttm_mem_global_alloc_page(mem_glob, ttm->pages[i],
-                                               false, false);
+               ret = ttm_mem_global_alloc_page(mem_glob, ttm->pages[i]);
                if (unlikely(ret != 0)) {
                        ttm_pool_unpopulate(ttm);
                        return -ENOMEM;
index 06bc14b55e6619fdff41b6422bbf3542aca7dc33..b8905bdd4143d38c4e8de30f3657a719b47e7468 100644 (file)
@@ -902,8 +902,7 @@ int ttm_dma_populate(struct ttm_dma_tt *ttm_dma, struct device *dev)
                        return -ENOMEM;
                }
 
-               ret = ttm_mem_global_alloc_page(mem_glob, ttm->pages[i],
-                                               false, false);
+               ret = ttm_mem_global_alloc_page(mem_glob, ttm->pages[i]);
                if (unlikely(ret != 0)) {
                        ttm_dma_unpopulate(ttm_dma, dev);
                        return -ENOMEM;
index c4520890f2677dd6af75e3d7aa026c2b88959c5e..8184ff144176663cf28d8fc9bc48a3b4317d52b4 100644 (file)
@@ -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,
                                uint64_t amount);
 extern int ttm_mem_global_alloc_page(struct ttm_mem_global *glob,
-                                    struct page *page,
-                                    bool no_wait, bool interruptible);
+                                    struct page *page);
 extern void ttm_mem_global_free_page(struct ttm_mem_global *glob,
                                     struct page *page);
 extern size_t ttm_round_pot(size_t size);