]> Pileus Git - ~andy/linux/commit
memory hotplug: sysfs probe routine should add all memory sections
authorNathan Fontenot <nfont@austin.ibm.com>
Mon, 31 Jan 2011 16:55:23 +0000 (10:55 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 00:08:58 +0000 (16:08 -0800)
commit6add7cd618b4d4dc525731beb539c5e06e891855
tree624d7f27f6d869468d3355b31f27f2b2a00ad83e
parent1dc41aa6d6172d61c10638d11933a3595a41d51a
memory hotplug: sysfs probe routine should add all memory sections

As a follow-on to the recent patches I submitted that allowed for a sysfs
memory block to span multiple memory sections, we should also update the
probe routine to online all of the memory sections in a memory block.  Without
this patch the current code will only add a single memory section.  I think
the probe routine should add all of the memory sections in the specified memory
block so that its behavior is in line with memory hotplug actions through
the sysfs interfaces.

This patch applies on top of the previous sysfs memory updates to allow
a sysfs directory o span multiple memory sections.

https://lkml.org/lkml/2011/1/20/245

Signed-off-by: Nathan Fontenot <nfont@austin.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/memory.c