Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2)

Grant Likely
2012-11-06T20:50:40Z

On Tue, Nov 6, 2012 at 8:45 PM, Grant Likely <grant.likely@secretlab.ca> wrote:
> The back of a napkin calculation indicates that on this platform
> /proc/devicetree costs 76kB and /sys/device-tree costs 60kb. I'm happy
> to see that using /sys instead of /proc appears to be slightly cheaper
> which makes it easier to justify the change. The diffstat makes me
> even happier:
>
> arch/arm/plat-omap/Kconfig | 1 -
> arch/powerpc/platforms/pseries/dlpar.c | 23 -----------
> arch/powerpc/platforms/pseries/reconfig.c | 40 ------------------
> drivers/of/Kconfig | 8 ----
> drivers/of/base.c | 116
> ++++++++++++++++++++++++++++------------------------
> drivers/of/fdt.c | 5 ++-
> fs/proc/Makefile | 1 -
> fs/proc/proc_devtree.c | 13 +-----
> fs/proc/root.c | 4 +-
> include/linux/of.h | 35 ++++++++++++----
> include/linux/proc_fs.h | 16 --------
> include/linux/string.h | 11 +++++
> 12 files changed, 107 insertions(+), 166 deletions(-)

Make that 96 insertions. I got an extra patch caught up in that diffstat.

g.