Re: [PATCH] online CPU before memory failed in pcpu_alloc_pages()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: minskey guo
Date: Friday, May 21, 2010 - 2:12 am

On 05/21/2010 04:39 PM, KAMEZAWA Hiroyuki wrote:

Look at the above code,  int __build_all_zonelists(),  cpu_to_mem(cpu)
is set only when cpu is onlined.  Suppose that a node with local memory,
all memory segments are onlined first, and then,  cpus within that node
are onlined one by one,  in this case,  where does the cpu_to_mem(cpu)
for the last cpu get its value ?



Thank you very much for the info,  I have been thinking why node_id
is (-1) in some cases.


-minskey
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] online CPU before memory failed in pcpu_alloc_ ..., KAMEZAWA Hiroyuki, (Thu May 20, 9:44 pm)
Re: [PATCH] online CPU before memory failed in pcpu_alloc_ ..., KAMEZAWA Hiroyuki, (Fri May 21, 1:39 am)
Re: [PATCH] online CPU before memory failed in pcpu_alloc_ ..., minskey guo, (Fri May 21, 2:12 am)