bitkeeper revision 1.1159.202.2 (41b35ba7ESi-KakWZHP4C9MhYX61Sw)

Cleanup xen-specific
This commit is contained in:
iap10@labyrinth.cl.cam.ac.uk committed 2004-12-05 19:04:07 +00:00
1 parent 05cf189308
commit 810260e9fc
1 file changed
+9 -15
+9 -15
View File
@@ -42,12 +42,7 @@ extern void tapechar_init(void);
*/
static inline int uncached_access(struct file *file, unsigned long addr)
{
#ifdef CONFIG_XEN
if (file->f_flags & O_SYNC)
return 1;
/* Xen sets correct MTRR type on non-RAM for us. */
return 0;
#elif defined(__i386__)
#if defined(__i386__)
/*
* On the PPro and successors, the MTRRs are used to set
* memory types for physical addresses outside main memory,
@@ -206,21 +201,20 @@ static int mmap_mem(struct file * file, struct vm_area_struct * vma)
vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
#endif
#if defined(CONFIG_XEN)
#if defined(__sparc__)
if (io_remap_page_range(vma,
vma->vm_start,
vma->vm_pgoff << PAGE_SHIFT,
vma->vm_end-vma->vm_start,
vma->vm_page_prot, 0))
return -EAGAIN;
#else
if (io_remap_page_range(vma,
vma->vm_start,
vma->vm_pgoff << PAGE_SHIFT,
vma->vm_end-vma->vm_start,
vma->vm_page_prot))
return -EAGAIN;
#else
/* Remap-pfn-range will mark the range VM_IO and VM_RESERVED */
if (remap_pfn_range(vma,
vma->vm_start,
vma->vm_pgoff,
vma->vm_end-vma->vm_start,
vma->vm_page_prot))
return -EAGAIN;
#endif
return 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.