aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/proc_ppc64.c
diff options
context:
space:
mode:
authormostrows@watson.ibm.com <mostrows@watson.ibm.com>2006-05-15 08:51:07 -0400
committerPaul Mackerras <paulus@samba.org>2006-05-19 00:35:32 -0400
commit9dabbfbab312909782b26580d71e3977622fab6e (patch)
tree2a691ca642995241224f087b3a53e815b8d67455 /arch/powerpc/kernel/proc_ppc64.c
parentde0fe3b83f4bb47a0a6b47897bb3800862194016 (diff)
[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: Michal Ostrowski <mostrows@watson.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/proc_ppc64.c')
-rw-r--r--arch/powerpc/kernel/proc_ppc64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/proc_ppc64.c b/arch/powerpc/kernel/proc_ppc64.c
index 3c2cf661f6d9..2b87f82df135 100644
--- a/arch/powerpc/kernel/proc_ppc64.c
+++ b/arch/powerpc/kernel/proc_ppc64.c
@@ -52,7 +52,7 @@ static int __init proc_ppc64_create(void)
52 if (!root) 52 if (!root)
53 return 1; 53 return 1;
54 54
55 if (!machine_is(pseries) && !machine_is(cell)) 55 if (!of_find_node_by_path("/rtas"))
56 return 0; 56 return 0;
57 57
58 if (!proc_mkdir("rtas", root)) 58 if (!proc_mkdir("rtas", root))