powerpc/numa: Fix OF node refcounting bug
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 30 May 2012 17:07:29 +0000 (17:07 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jul 2012 04:14:44 +0000 (14:14 +1000)
commit5b958a7eef9e116c7be516924f27e5c62a9c6914
tree215f93bdc2e00c90b6da88cebeed472109b3b803
parentfde69282b7ba2701560764b81ebb756deb98cf2b
powerpc/numa: Fix OF node refcounting bug

The form affinity for NUMA is set to 1 if the firmware supports
OPAL. Otherwise, we have to retrieve that from OF node "/chosen".
For the latter case, OF node "/chosen" reference count was never
decreased.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c