]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Refactor dlpar_add_lmb() code
authorNathan Fontenot <nfont@linux.vnet.ibm.com>
Wed, 10 Feb 2016 17:10:44 +0000 (11:10 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 11 Apr 2016 01:23:38 +0000 (11:23 +1000)
commitcfd90c8a5453336cba962e6cbfe73525bcf11347
tree5209ce75f5516fe4320357876dc45912ea9261fd
parent41aa7f45df2316f92d6d78cf3cd4e54d1bd39973
powerpc/pseries: Refactor dlpar_add_lmb() code

Re-factor dlpar_lmb_add() routine by moving the validation of the lmb
flags and the acquireing of the DRC to a wrapper around the work to add
the memory to the system. This is done to make handling of errors
during the addition of the memory easier and to facilitate the upcoming
addition of updating the lmb's affinity prior to adding the memory.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/hotplug-memory.c