patch-2.1.51 linux/fs/proc/root.c

Next file: linux/fs/read_write.c
Previous file: linux/fs/proc/proc_devtree.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.50/linux/fs/proc/root.c linux/fs/proc/root.c
@@ -548,6 +548,13 @@
 	0, &proc_omirr_inode_operations
 };
 #endif
+#ifdef __powerpc__
+static struct proc_dir_entry proc_root_ppc_htab = {
+	PROC_PPC_HTAB, 8, "ppc_htab",
+	S_IFREG | S_IRUGO, 1, 0, 0,
+	0, &proc_ppc_htab_inode_operations
+};
+#endif
 
 void proc_root_init(void)
 {
@@ -619,6 +626,12 @@
 	}
 
 	proc_tty_init();
+#ifdef __powerpc__
+	proc_register(&proc_root, &proc_root_ppc_htab);
+#endif
+#ifdef CONFIG_PROC_DEVICETREE
+	proc_device_tree_init();
+#endif
 }
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov