* [PATCH] Create /proc/rtas,/proc/ppc64/rtas if RTAS exists.
@ 2006-05-15 12:51 mostrows
0 siblings, 0 replies; only message in thread
From: mostrows @ 2006-05-15 12:51 UTC (permalink / raw)
To: paulus, benh, linuxppc-dev
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>
---
arch/powerpc/kernel/proc_ppc64.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
d8054b07bbf12e0178ec5ad7ce6a750a3af53064
diff --git a/arch/powerpc/kernel/proc_ppc64.c b/arch/powerpc/kernel/proc_ppc64.c
index 3c2cf66..2b87f82 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
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))
--
1.1.4.g0b63-dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-15 12:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-15 12:51 [PATCH] Create /proc/rtas,/proc/ppc64/rtas if RTAS exists mostrows
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox