OSDN Git Service

drm/ttm: export ttm_pool_fini for cleanup
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Tue, 14 Feb 2023 04:51:07 +0000 (23:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:57:29 +0000 (09:57 -0400)
ttm_pool_init is exported and used outside of ttm subsystem with
amdgpu_ttm interface, similarly export ttm_pool_fini for proper cleanup.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_pool.c

index afc4476..668abf6 100644 (file)
@@ -600,6 +600,7 @@ void ttm_pool_fini(struct ttm_pool *pool)
         */
        synchronize_shrinkers();
 }
+EXPORT_SYMBOL(ttm_pool_fini);
 
 /* As long as pages are available make sure to release at least one */
 static unsigned long ttm_pool_shrinker_scan(struct shrinker *shrink,