]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66e3849d40e31d041ad97d93cd5b24206605e072
tree4e3be2848acb12dfa67fcff870b1cec902f23192
parent8b7386451c96b519c769948400933781b6c1b3b8
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