powerpc/pmac: Remove early allocation of the SMU command buffer
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Jul 2016 05:03:50 +0000 (15:03 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 21 Jul 2016 08:56:38 +0000 (18:56 +1000)
commit91b6fad5cf16c5fcf0ab2a08fcdbd1483d871d43
treeb413fd8e288ae3945aee1b9024ab39a7c0addeea
parentd3cbff1b5a90afe6cb201aa2187c9609e21f92ad
powerpc/pmac: Remove early allocation of the SMU command buffer

The SMU command buffer needs to be allocated below 2G using memblock.

In the past, this had to be done very early from the arch code as
memblock wasn't available past that point. That is no longer the
case though, smu_init() is called from setup_arch() when memblock
is still functional these days. So move the allocation to the
SMU driver itself.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/smu.h
arch/powerpc/platforms/powermac/setup.c
drivers/macintosh/smu.c