]> 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)
commite4e7f11c3f19bf3acc4be68497654dfcc2fbbf67
tree5209ce75f5516fe4320357876dc45912ea9261fd
parentd7b9039fd4cd436110bd493aa35e59ca751065ba
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