|
@@ -242,9 +242,11 @@ static int memtrace_online(void)
|
|
* we need to online the memory ourselves.
|
|
* we need to online the memory ourselves.
|
|
*/
|
|
*/
|
|
if (!memhp_auto_online) {
|
|
if (!memhp_auto_online) {
|
|
|
|
+ lock_device_hotplug();
|
|
walk_memory_range(PFN_DOWN(ent->start),
|
|
walk_memory_range(PFN_DOWN(ent->start),
|
|
PFN_UP(ent->start + ent->size - 1),
|
|
PFN_UP(ent->start + ent->size - 1),
|
|
NULL, online_mem_block);
|
|
NULL, online_mem_block);
|
|
|
|
+ unlock_device_hotplug();
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|