diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-12-08 12:08:25 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-12-08 12:08:25 +0000 |
commit | 4e882826ffac8355e54242eb64fcd6c92507a1a3 (patch) | |
tree | 6cbd5a4e18b10539636a4bade7d065f3e3ece345 /sys | |
parent | e0203693419d33bd5b90ab9534fcb772e060f2e1 (diff) |
Call ttm_tt_unpopulate() instead of directly calling ttm_tt_unpopulate
function pointer in ttm_tt_swapout(). Reduces the diff to linux.
ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/ttm/ttm_tt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/ttm/ttm_tt.c b/sys/dev/pci/drm/ttm/ttm_tt.c index de0114e8083..1e0f6b02f52 100644 --- a/sys/dev/pci/drm/ttm/ttm_tt.c +++ b/sys/dev/pci/drm/ttm/ttm_tt.c @@ -473,7 +473,7 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct uvm_object *persistent_swap_storag uvm_objunwire(swap_storage, 0, ttm->num_pages << PAGE_SHIFT); - ttm->bdev->driver->ttm_tt_unpopulate(ttm); + ttm_tt_unpopulate(ttm); ttm->swap_storage = swap_storage; ttm->page_flags |= TTM_PAGE_FLAG_SWAPPED; if (persistent_swap_storage) |