[PATCH] mm: remove VM_LOCKED before remap_pfn_range and drop VM_SHM
[deliverable/linux.git] / arch / powerpc / kernel / proc_ppc64.c
index 3c2cf661f6d997bf589c6f1c95cd617be599b622..2ab8f2be911e055c2d38b726816f9d7fc6b0f3ef 100644 (file)
@@ -52,7 +52,7 @@ static int __init proc_ppc64_create(void)
        if (!root)
                return 1;
 
-       if (!machine_is(pseries) && !machine_is(cell))
+       if (!of_find_node_by_path("/rtas"))
                return 0;
 
        if (!proc_mkdir("rtas", root))
@@ -115,8 +115,6 @@ static int page_map_mmap( struct file *file, struct vm_area_struct *vma )
 {
        struct proc_dir_entry *dp = PDE(file->f_dentry->d_inode);
 
-       vma->vm_flags |= VM_SHM | VM_LOCKED;
-
        if ((vma->vm_end - vma->vm_start) > dp->size)
                return -EINVAL;
 
This page took 0.03848 seconds and 5 git commands to generate.