[PATCH] powerpc: Add/remove/update properties in firmware device tree
authorDave C Boutcher <sleddog@us.ibm.com>
Thu, 12 Jan 2006 22:08:27 +0000 (16:08 -0600)
committerPaul Mackerras <paulus@samba.org>
Fri, 13 Jan 2006 10:02:50 +0000 (21:02 +1100)
commit088186ded490ced80758200cf8f906ed741df306
tree0afbaac2b9843937c63da79dfbd91a60f606c00f
parent898b5395e915210f41223caa30312994d64cba1d
[PATCH] powerpc: Add/remove/update properties in firmware device tree

Add support for updating and removing device tree
properties.  Since we hand out pointers to properties with gay
abandon, we can't just free the property storage.  Instead we
move deleted, or the old copy of an updated property, to a
"dead properties" list.

Also note, its not feasable to kref device tree properties.
we call get_property() all over the kernel in a wild variety
of contexts.

One consequence of this change is that we now take a
read_lock(&devtree_lock) when doing get_property().

Signed-off-by: Dave Boutcher <sleddog@us.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom.c
include/asm-powerpc/prom.h