[PATCH] of_add_property and property list locking (2.5)
Nathan Lynch
nathanl at austin.ibm.com
Tue Nov 25 16:06:38 EST 2003
Hi-
We need the ability to add custom properties to OF device nodes in
certain situations (e.g. cpu hotplug). And if we're going to be adding
properties, we need some sort of locking for struct device_node's
properties list. I've also added a public proc_device_tree_add_property
interface to fs/proc/proc_devtree.c to avoid duplication of code.
The natural thing to follow this would be deprecating get_property in
favor of a function (of_get_property?) that takes the new lock when
searching the property list.
Comments?
Nathan
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: of_add_property.patch
Url: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20031124/260ab916/attachment.txt
More information about the Linuxppc64-dev
mailing list