Toshi Kani 01b0f19707 cpu/mem hotplug: add try_online_node() for cpu_up()
cpu_up() has #ifdef CONFIG_MEMORY_HOTPLUG code blocks, which call
mem_online_node() to put its node online if offlined and then call
build_all_zonelists() to initialize the zone list.

These steps are specific to memory hotplug, and should be managed in
mm/memory_hotplug.c.  lock_memory_hotplug() should also be held for the
whole steps.

For this reason, this patch replaces mem_online_node() with
try_online_node(), which performs the whole steps with
lock_memory_hotplug() held.  try_online_node() is named after
try_offline_node() as they have similar purpose.

There is no functional change in this patch.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Reviewed-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-11-13 12:09:04 +09:00
..
2013-04-22 07:09:06 -07:00
2013-09-09 11:19:09 -07:00
2013-10-09 12:36:13 +02:00
2012-05-31 17:49:27 -07:00
2012-03-28 18:30:03 +01:00
2013-06-25 23:11:19 +02:00
2012-12-20 17:40:19 -08:00
2013-09-11 15:59:10 -07:00
2013-09-11 15:58:27 -07:00
2013-04-29 13:55:38 -07:00