]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] ppc32/ppc64: cleanup /proc/device-tree
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 1 Jun 2005 07:07:27 +0000 (17:07 +1000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 1 Jun 2005 14:54:14 +0000 (07:54 -0700)
commit7b4f419f2cfc566bba8ca64d17ee9e19b6530939
tree115e11766270637d3c9b2e9e0366b127af7a1fd6
parent5954108a35636fa174426e373de0e9498e873fda
[PATCH] ppc32/ppc64: cleanup /proc/device-tree

This cleans up the /proc/device-tree representation of the Open Firmware
device-tree on ppc and ppc64.  It does the following things:

 - Workaround an issue in some Apple device-trees where a property may
   exist with the same name as a child node of the parent.  We now
   simply "drop" the property instead of creating duplicate entries in
   /proc with random result...

 - Do not try to chop off the "@0" at the end of a node name whose unit
   address is 0.  This is not useful, inconsistent, and the code was
   buggy and didn't always work anyway.

 - Do not create symlinks for the short name and unit address parts of a
   node.  These were never really used, bloated the memory footprint of
   the device-tree with useless struct proc_dir_entry and their matching
   dentry and inode cache bloat.

This results in smaller code, smaller memory footprint, and a more
accurate view of the tree presented to userland.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/kernel/pSeries_reconfig.c
fs/proc/proc_devtree.c
include/asm-ppc64/prom.h