[PATCH V2 2/2] of: remove /proc/device-tree

2013-03-21 Thread Grant Likely
The same data is now available in sysfs, so we can remove the code that exports it in /proc and replace it with a symlink to the sysfs version. Tested on versatile qemu model and mpc5200 eval board. More testing would be appreciated. Signed-off-by: Grant Likely Cc: Rob Herring Cc: Greg Kroah-Ha

Re: [PATCH V2 2/2] of: remove /proc/device-tree

2013-03-21 Thread Benjamin Herrenschmidt
On Thu, 2013-03-21 at 11:24 +, Grant Likely wrote: > The same data is now available in sysfs, so we can remove the code > that exports it in /proc and replace it with a symlink to the sysfs > version. > > Tested on versatile qemu model and mpc5200 eval board. More testing > would be appreciate

Re: [PATCH V2 2/2] of: remove /proc/device-tree

2013-03-21 Thread Grant Likely
On Thu, Mar 21, 2013 at 12:52 PM, Benjamin Herrenschmidt wrote: > On Thu, 2013-03-21 at 11:24 +, Grant Likely wrote: >> The same data is now available in sysfs, so we can remove the code >> that exports it in /proc and replace it with a symlink to the sysfs >> version. >> >> Tested on versatil

Re: [PATCH V2 2/2] of: remove /proc/device-tree

2013-03-22 Thread Grant Likely
On Thu, Mar 21, 2013 at 8:07 PM, Grant Likely wrote: > On Thu, Mar 21, 2013 at 12:52 PM, Benjamin Herrenschmidt > wrote: >> On Thu, 2013-03-21 at 11:24 +, Grant Likely wrote: >> kexec comes to mind (all 4 variants of fs2dt.c (yuck !)), dtc, various >> powerpc-utils (bootloader configuration e

Re: [PATCH V2 2/2] of: remove /proc/device-tree

2013-03-22 Thread Benjamin Herrenschmidt
On Fri, 2013-03-22 at 13:03 -0500, Nathan Fontenot wrote: > We don't ever free old property values, mainly I assume since we don't keep > reference counts and can't know when it is safe to do so. The problem I > am starting to see on pseries is that we are getting very large properties. > One of th

Re: [PATCH V2 2/2] of: remove /proc/device-tree

2013-03-22 Thread Grant Likely
On Fri, Mar 22, 2013 at 7:29 PM, Benjamin Herrenschmidt wrote: > On Fri, 2013-03-22 at 13:03 -0500, Nathan Fontenot wrote: >> We don't ever free old property values, mainly I assume since we don't keep >> reference counts and can't know when it is safe to do so. The problem I >> am starting to see