]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita7face6d70ff698b8a59ca6f55139d676c3b1a32
tree4f463e770d237f8a158e0f3ac325611baab0e1be
parent68a4dcd528d2093f625e7d7adf6ba7aaf8bf72c9
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