Home
last modified time | relevance | path

Searched hist:"1578 cb76d46c9735a740c919cb9b7e5d1ba92420" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/powerpc/platforms/pseries/
H A Ddlpar.cdiff 1578cb76d46c9735a740c919cb9b7e5d1ba92420 Thu Aug 15 00:23:49 CDT 2013 Tyrel Datwyler <tyreld@linux.vnet.ibm.com> powerpc/pseries: Do all node initialization in dlpar_parse_cc_node

Currently the OF_DYNAMIC and kref initialization for a node happens in
dlpar_attach_node. However, a node passed to dlpar_attach_node may be a tree
containing child nodes, and no initialization traversal is done on the
tree. Since the children never get their kref initialized or the OF_DYNAMIC
flag set these nodes are prevented from ever being released from memory
should they become detached. This initialization step is better done at the
time each node is allocated in dlpar_parse_cc_node.

Signed-off-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Acked-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>