powerpc/mm: Limit resize_hpt_for_hotplug() call to hash guests only
authorBharata B Rao <bharata@linux.ibm.com>
Mon, 27 Jul 2020 09:57:04 +0000 (15:27 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 29 Jul 2020 11:02:12 +0000 (21:02 +1000)
commit55548a86ebde2b3691b6a84baef1b02933408994
tree4f463e770d237f8a158e0f3ac325611baab0e1be
parent73da08f6966b81feb429af4fb3229da4cf21d6d9
powerpc/mm: Limit resize_hpt_for_hotplug() call to hash guests only

During memory hotplug and unplug, resize_hpt_for_hotplug() gets called
for both hash and radix guests but it should be called only for hash
guests. Though the call does nothing in the radix guest case, it is
cleaner to push this call into hash specific memory hotplug routines.

Reported-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200727095704.1432916-1-bharata@linux.ibm.com
arch/powerpc/include/asm/sparsemem.h
arch/powerpc/mm/book3s64/hash_utils.c
arch/powerpc/mm/mem.c