瀏覽代碼

[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>
mostrows@watson.ibm.com 19 年之前
父節點
當前提交
9dabbfbab3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/powerpc/kernel/proc_ppc64.c

+ 1 - 1
arch/powerpc/kernel/proc_ppc64.c

@@ -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))