summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2020-12-08 12:08:24 +0000
committerjsg <jsg@openbsd.org>2020-12-08 12:08:24 +0000
commit6f4697907ed0edfa09b5aa2177eabc329d76d77e (patch)
tree9425d10dd697d7ed63056b5a287f51121af5a8a1
parentUse BA agreement immediately after it is requested by the AP. (diff)
downloadwireguard-openbsd-6f4697907ed0edfa09b5aa2177eabc329d76d77e.tar.xz
wireguard-openbsd-6f4697907ed0edfa09b5aa2177eabc329d76d77e.zip
Call ttm_tt_unpopulate() instead of directly calling ttm_tt_unpopulate
function pointer in ttm_tt_swapout(). Reduces the diff to linux. ok kettenis@
-rw-r--r--sys/dev/pci/drm/ttm/ttm_tt.c2
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)