Merge branch 'drm-next' of git://people.freedesktop.org/~airlied/linux
[~shefty/rdma-dev.git] / drivers / gpu / drm / ttm / ttm_tt.c
index 8aafeef40ca33bee1fed9052e8be53fd94cd51ab..fa09daf9a50c30adb728bda9d29ba0319ce478c8 100644 (file)
@@ -311,11 +311,11 @@ int ttm_tt_swapin(struct ttm_tt *ttm)
                        goto out_err;
 
                preempt_disable();
-               from_virtual = kmap_atomic(from_page, KM_USER0);
-               to_virtual = kmap_atomic(to_page, KM_USER1);
+               from_virtual = kmap_atomic(from_page);
+               to_virtual = kmap_atomic(to_page);
                memcpy(to_virtual, from_virtual, PAGE_SIZE);
-               kunmap_atomic(to_virtual, KM_USER1);
-               kunmap_atomic(from_virtual, KM_USER0);
+               kunmap_atomic(to_virtual);
+               kunmap_atomic(from_virtual);
                preempt_enable();
                page_cache_release(from_page);
        }
@@ -367,11 +367,11 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct file *persistent_swap_storage)
                        goto out_err;
                }
                preempt_disable();
-               from_virtual = kmap_atomic(from_page, KM_USER0);
-               to_virtual = kmap_atomic(to_page, KM_USER1);
+               from_virtual = kmap_atomic(from_page);
+               to_virtual = kmap_atomic(to_page);
                memcpy(to_virtual, from_virtual, PAGE_SIZE);
-               kunmap_atomic(to_virtual, KM_USER1);
-               kunmap_atomic(from_virtual, KM_USER0);
+               kunmap_atomic(to_virtual);
+               kunmap_atomic(from_virtual);
                preempt_enable();
                set_page_dirty(to_page);
                mark_page_accessed(to_page);