diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-12-26 12:05:52 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-12-26 12:05:52 +0000 |
commit | 9559d55739c66025b8c3c599ffafb96ccbac2771 (patch) | |
tree | 2de82e1150c0043fe5d839797b3523bef9125233 /sys/dev/pci/drm | |
parent | 18b030bd7616d1ef9ed356266d6d6d8ea86a003f (diff) |
enable shrinker for ttm
ok kettenis@
Diffstat (limited to 'sys/dev/pci/drm')
-rw-r--r-- | sys/dev/pci/drm/ttm/ttm_page_alloc.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/pci/drm/ttm/ttm_page_alloc.c b/sys/dev/pci/drm/ttm/ttm_page_alloc.c index dd1e4f98262..5666163906c 100644 --- a/sys/dev/pci/drm/ttm/ttm_page_alloc.c +++ b/sys/dev/pci/drm/ttm/ttm_page_alloc.c @@ -107,9 +107,7 @@ struct ttm_pool_opts { **/ struct ttm_pool_manager { struct kobject kobj; -#ifdef notyet struct shrinker mm_shrink; -#endif struct ttm_pool_opts options; union { @@ -388,7 +386,6 @@ out: * * This code is crying out for a shrinker per pool.... */ -#ifdef notyet static unsigned long ttm_pool_shrink_scan(struct shrinker *shrink, struct shrink_control *sc) { @@ -441,17 +438,13 @@ ttm_pool_shrink_count(struct shrinker *shrink, struct shrink_control *sc) return count; } -#endif static int ttm_pool_mm_shrink_init(struct ttm_pool_manager *manager) { -#ifdef notyet manager->mm_shrink.count_objects = ttm_pool_shrink_count; manager->mm_shrink.scan_objects = ttm_pool_shrink_scan; manager->mm_shrink.seeks = 1; return register_shrinker(&manager->mm_shrink); -#endif - return 0; } static void ttm_pool_mm_shrink_fini(struct ttm_pool_manager *manager) |