powerpc/numa: Add length when creating OF properties via VPHN
authorAnton Blanchard <anton@samba.org>
Sat, 29 Jan 2011 12:28:04 +0000 (12:28 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Feb 2011 02:06:03 +0000 (13:06 +1100)
commitc0e5e46f3911a451b6915feda709fd1b9b7f026a
tree37429ad13b91df41267c85303fd14e77e5f7ce19
parentd69043e8069f493ebee9472bcc78b3f54c5c27d9
powerpc/numa: Add length when creating OF properties via VPHN

The rest of the NUMA code expects an OF associativity property with
the first cell containing the length. Without this fix all topology changes
cause us to misparse the property and put the cpu into node 0.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c