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

Grant Likely grant.likely at secretlab.ca
Wed Nov 7 07:50:17 EST 2012


On Tue, Nov 6, 2012 at 8:45 PM, Grant Likely <grant.likely at 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.


More information about the devicetree-discuss mailing list