diff options
author | mdaenzer <mdaenzer> | 2003-08-28 12:14:17 +0000 |
---|---|---|
committer | mdaenzer <mdaenzer> | 2003-08-28 12:14:17 +0000 |
commit | cf3ae04de70b05d8178081a7cd3325513ad140b8 (patch) | |
tree | 00683c37ba9eb966957e9495e3ca58b560b215ca /xc/programs/Xserver | |
parent | c86643b77c781b393759350237c0ed09f556e3f8 (diff) |
Remove superfluous TLB flush
Diffstat (limited to 'xc/programs/Xserver')
-rw-r--r-- | xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_memory.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_memory.h b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_memory.h index 870f049dd..4ac7bac5e 100644 --- a/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/drm_memory.h +++ b/xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/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; } |