summaryrefslogtreecommitdiff
path: root/linux-core/drm_memory.h
diff options
context:
space:
mode:
authorMichel Daenzer <michel@daenzer.net>2003-08-28 12:14:17 +0000
committerMichel Daenzer <michel@daenzer.net>2003-08-28 12:14:17 +0000
commitba804e7864eef2fd1d92cfe75b0bc868302da084 (patch)
tree1890940b1a7490d57c2464f9b050168083727f84 /linux-core/drm_memory.h
parentb83d2f909e03c7c4a95f19a04d717f7ea8dc288e (diff)
Remove superfluous TLB flush
Diffstat (limited to 'linux-core/drm_memory.h')
-rw-r--r--linux-core/drm_memory.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/linux-core/drm_memory.h b/linux-core/drm_memory.h
index 870f049d..4ac7bac5 100644
--- a/linux-core/drm_memory.h
+++ b/linux-core/drm_memory.h
@@ -59,13 +59,10 @@
# endif
#endif
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
-# include <asm/tlbflush.h>
-#else
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
# define pte_offset_kernel(dir, address) pte_offset(dir, address)
# define pte_pfn(pte) (pte_page(pte) - mem_map)
# define pfn_to_page(pfn) (mem_map + (pfn))
-# define flush_tlb_kernel_range(s,e) flush_tlb_all()
#endif
/*
@@ -125,10 +122,7 @@ agp_remap (unsigned long offset, unsigned long size, drm_device_t *dev)
page_map[i] = pfn_to_page(phys_addr_map[i] >> PAGE_SHIFT);
addr = vmap(page_map, num_pages, VM_IOREMAP, PAGE_AGP);
vfree(page_map);
- if (!addr)
- return NULL;
- flush_tlb_kernel_range((unsigned long) addr, (unsigned long) addr + size);
return addr;
}