Skip to content

Commit

Permalink
[PATCH] powerpc: Create /proc/rtas, /proc/ppc64/rtas if RTAS exists.
Browse files Browse the repository at this point in the history
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: Michal Ostrowski <mostrows@watson.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
mostrows@watson.ibm.com authored and Paul Mackerras committed May 19, 2006
1 parent de0fe3b commit 9dabbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/proc_ppc64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 9dabbfb

Please sign in to comment.