powerpc/pseries: Don't give a warning when HPT resizing isn't available
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 17 Mar 2017 05:02:35 +0000 (16:02 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 17 Mar 2017 05:10:58 +0000 (16:10 +1100)
commit8971e1c79d3f6c9a5e6f7a65c50c41f434a4dae6
treedcdab00a415a31400f3eca1e2eabc6e27557921a
parentf717629c7f834ab2efa05c7dbf0826f1d7c32ade
powerpc/pseries: Don't give a warning when HPT resizing isn't available

As of commit 438cc81a41e8 ("powerpc/pseries: Automatically resize HPT
for memory hot add/remove"), when running on the pseries platform, we
always attempt to use the PAPR extension to resize the hashed page
table (HPT) when we add or remove memory.

This is fine, but when the extension is not available we'll give a
harmless, but scary warning. Instead check if the firmware supports HPT
resizing before populating the mmu_hash_ops.resize_hpt pointer.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/lpar.c