Re: memory hotplug - looking for good place for cpuset hook

From: KAMEZAWA Hiroyuki
Date: Fri Aug 25 2006 - 05:46:25 EST


On Fri, 25 Aug 2006 01:53:59 -0700
Paul Jackson <pj@xxxxxxx> wrote:

> >From what I see so far, the right place to call my cpuset routine to
> update its copy of node_online_map would be right after the call:
>
> node_set_online(nid);
>
> in the routine mm/memory_hotplug.c:add_memory().
>
> Does that seem like a plausible sounding place to you?
>
maybe

if (new_pgdat) {
register_one_node(nid); <-- add sysfs entry of node
<here>
}

is good.

(When I implements node-hotplug invoked by cpu-hotplug, I'll care cpuset.)

-Kame

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/