]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita55dac6571a4d8dbaf634c0dd749462dc52543d4
treeb413fd8e288ae3945aee1b9024ab39a7c0addeea
parentae50551f6b58b7b574121a98268bb48b405ef863
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