Commit 7339390d authored by David Gibson's avatar David Gibson Committed by Michael Ellerman

powerpc/pseries: Don't give a warning when HPT resizing isn't available

As of 438cc81a "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 available we'll give a harmless,
but scary warning.  This patch suppresses the warning in this case.  It
will still warn if the feature is supposed to be available, but didn't
work.
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 4be4119d
...@@ -774,7 +774,7 @@ void resize_hpt_for_hotplug(unsigned long new_mem_size) ...@@ -774,7 +774,7 @@ void resize_hpt_for_hotplug(unsigned long new_mem_size)
int rc; int rc;
rc = mmu_hash_ops.resize_hpt(target_hpt_shift); rc = mmu_hash_ops.resize_hpt(target_hpt_shift);
if (rc) if (rc && (rc != -ENODEV))
printk(KERN_WARNING printk(KERN_WARNING
"Unable to resize hash page table to target order %d: %d\n", "Unable to resize hash page table to target order %d: %d\n",
target_hpt_shift, rc); target_hpt_shift, rc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment