]> git.karo-electronics.de Git - karo-tx-linux.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)
commit4a4bdfea7cb75b5c8b222932796f64a14027d512
tree5209ce75f5516fe4320357876dc45912ea9261fd
parentbf16200689118d19de1b8d2a3c314fc21f5dc7bb
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