summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorJohn Allen <jallen@linux.vnet.ibm.com>2017-08-23 12:18:43 -0500
committerMichael Ellerman <mpe@ellerman.id.au>2017-08-31 20:02:23 +1000
commitafb5519fdb346201728040cab4e08ce53e7ff4fd (patch)
treec88751b7b0f4842af069b7326cd5cd99fbff6ff9 /samples
parent7def9a2418430a8af2a56023769ccdcdea7cd7e1 (diff)
downloadlinux-afb5519fdb346201728040cab4e08ce53e7ff4fd.tar.bz2
powerpc/pseries: Don't attempt to acquire drc during memory hot add for assigned lmbs
Check if an LMB is assigned before attempting to call dlpar_acquire_drc in order to avoid any unnecessary rtas calls. This substantially reduces the running time of memory hot add on lpars with large amounts of memory. [mpe: We need to explicitly set rc to 0 in the success case, otherwise the compiler might think we use rc without initialising it.] Fixes: c21f515c7436 ("powerpc/pseries: Make the acquire/release of the drc for memory a seperate step") Cc: stable@vger.kernel.org # v4.11+ Signed-off-by: John Allen <jallen@linux.vnet.ibm.com> Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions