* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <linux/config.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/proc_fs.h>
#include <linux/slab.h>
#include <linux/kernel.h>
-#include <asm/machdep.h>
#include <asm/vdso_datapage.h>
#include <asm/rtas.h>
#include <asm/uaccess.h>
if (!root)
return 1;
- if (!of_find_node_by_path("/rtas"))
+ if (!(platform_is_pseries() || _machine == PLATFORM_CELL))
return 0;
if (!proc_mkdir("rtas", root))
{
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;