drivers: base: move mutex lock out of add_memory_section()
authorSeth Jennings <sjenning@linux.vnet.ibm.com>
Tue, 20 Aug 2013 17:12:57 +0000 (12:12 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Aug 2013 18:47:39 +0000 (11:47 -0700)
commitb1eaef3da5a7bbc48fa9dbefaa2a28e45367fdb1
tree2c64447a090dfc9704700f7536ab6b70f5b7a1d7
parent65f44679580de05d267f026ed8164539ec5c7a88
drivers: base: move mutex lock out of add_memory_section()

There is no point in releasing the mutex for each section that is added
during boot time.  Just hold it over the entire initialization loop.

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