Commit 9dabbfba authored by mostrows@watson.ibm.com's avatar mostrows@watson.ibm.com Committed by Paul Mackerras

[PATCH] powerpc: Create /proc/rtas, /proc/ppc64/rtas if RTAS exists.

Use the existence of RTAS device tree node to determine if
/proc/rtas. /proc/ppc64/rtas are to be created.  Using machine type
is not reliable (i.e. Maple-like machines may have RTAS).
Signed-off-by: default avatarMichal Ostrowski <mostrows@watson.ibm.com>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent de0fe3b8
...@@ -52,7 +52,7 @@ static int __init proc_ppc64_create(void) ...@@ -52,7 +52,7 @@ static int __init proc_ppc64_create(void)
if (!root) if (!root)
return 1; return 1;
if (!machine_is(pseries) && !machine_is(cell)) if (!of_find_node_by_path("/rtas"))
return 0; return 0;
if (!proc_mkdir("rtas", root)) if (!proc_mkdir("rtas", root))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment