]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm: remove the second argument of k[un]map_atomic()
authorCong Wang <amwang@redhat.com>
Fri, 25 Nov 2011 15:14:20 +0000 (23:14 +0800)
committerCong Wang <xiyou.wangcong@gmail.com>
Tue, 20 Mar 2012 13:48:17 +0000 (21:48 +0800)
Signed-off-by: Cong Wang <amwang@redhat.com>
drivers/gpu/drm/drm_cache.c
drivers/gpu/drm/ttm/ttm_tt.c
drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c

index 592865381c6e84acb5ec66fef2e865e897d586e0..4b8653b932f9a3216a3b43038b22ed96bb8709c9 100644 (file)
@@ -41,10 +41,10 @@ drm_clflush_page(struct page *page)
        if (unlikely(page == NULL))
                return;
 
-       page_virtual = kmap_atomic(page, KM_USER0);
+       page_virtual = kmap_atomic(page);
        for (i = 0; i < PAGE_SIZE; i += boot_cpu_data.x86_clflush_size)
                clflush(page_virtual + i);
-       kunmap_atomic(page_virtual, KM_USER0);
+       kunmap_atomic(page_virtual);
 }
 
 static void drm_cache_flush_clflush(struct page *pages[],
@@ -87,10 +87,10 @@ drm_clflush_pages(struct page *pages[], unsigned long num_pages)
                if (unlikely(page == NULL))
                        continue;
 
-               page_virtual = kmap_atomic(page, KM_USER0);
+               page_virtual = kmap_atomic(page);
                flush_dcache_range((unsigned long)page_virtual,
                                   (unsigned long)page_virtual + PAGE_SIZE);
-               kunmap_atomic(page_virtual, KM_USER0);
+               kunmap_atomic(page_virtual);
        }
 #else
        printk(KERN_ERR "Architecture has no drm_cache.c support\n");
index 2f75d203a2bf259e8b17d71b03f79fe948fc7bc9..c10cf5e2443a08a65e2a368c61d99ff39a5c64bb 100644 (file)
@@ -309,11 +309,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);
        }
@@ -365,11 +365,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);
index f4e7763a7694478ded28ae30eada55781d3eec2c..51c9ba5cd2fbff85f4411ec6629f112ad8373a70 100644 (file)
@@ -136,10 +136,10 @@ static int vmw_gmr_build_descriptors(struct list_head *desc_pages,
 
                if (likely(page_virtual != NULL)) {
                        desc_virtual->ppn = page_to_pfn(page);
-                       kunmap_atomic(page_virtual, KM_USER0);
+                       kunmap_atomic(page_virtual);
                }
 
-               page_virtual = kmap_atomic(page, KM_USER0);
+               page_virtual = kmap_atomic(page);
                desc_virtual = page_virtual - 1;
                prev_pfn = ~(0UL);
 
@@ -169,7 +169,7 @@ static int vmw_gmr_build_descriptors(struct list_head *desc_pages,
        }
 
        if (likely(page_virtual != NULL))
-               kunmap_atomic(page_virtual, KM_USER0);
+               kunmap_atomic(page_virtual);
 
        return 0;
 out_err: