Skip to contentSkip to conversation

Create /proc/rtas,/proc/ppc64/rtas if RTAS exists.

PATCH New [email protected] 1 participant 1 message May 15, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

--

---

 arch/powerpc/kernel/proc_ppc64.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

d8054b07bbf12e0178ec5ad7ce6a750a3af53064

arch/powerpc/kernel/proc_ppc64.c +1 -1
index 3c2cf66..2b87f82 100644
@@ -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))
Signature · 1 line
1.1.4.g0b63-dirty