]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drivers: base: unshare add_memory_section() from hotplug
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Tue, 20 Aug 2013 17:13:00 +0000 (12:13 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 18:48:40 +0000 (11:48 -0700)
commitd7f80530ad0a71615f54607128c30d2422bf4c02
tree4bbc0f27cf7ef588b54378d6e73e83c149fb470c
parentdf2b717c667d2cab37d1bbd585e891f10ed2bca4
drivers: base: unshare add_memory_section() from hotplug

add_memory_section() is currently called from both boot time and run
time via hotplug and there is a lot of nastiness to allow for shared
code including an enum parameter to convey the calling context to
add_memory_section().

This patch is the first step in breaking up the messy code sharing by
pulling the hotplug path for add_memory_section() directly into
register_new_memory().

Signed-off-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/memory.c