powerpc: Make NUMA device node code endian safe
authorAlistair Popple <alistair@popple.id.au>
Tue, 6 Aug 2013 16:01:44 +0000 (02:01 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Aug 2013 05:33:33 +0000 (15:33 +1000)
commitb08a2a12e44eaec5024b2b969f4fcb98169d1ca3
tree4e3be2848acb12dfa67fcff870b1cec902f23192
parent4a396dc6faa1d8c5b2a079d2018791934e7492b1
powerpc: Make NUMA device node code endian safe

The device tree is big endian so make sure we byteswap on little
endian. We assume any pHyp calls also return big endian results in
memory.

Signed-off-by: Alistair Popple <alistair@popple.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c