lkml.org 
[lkml]   [2017]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] x86/numa_emulation: assign physnode_mask directly from numa_nodes_parsed
On Tue, 11 Apr 2017, Wei Yang wrote:

> According to current code path, numa_nodes_parsed is already setup when
> numa_emucation() is called.
>
> x86_numa_init()
> numa_init()
> init_func()
>
> numa_emulation()
>
> numa_register_memblks()
>

s/numa_emucation/numa_emulation/, but I think everything above should just
be reworded to say the following since it establishes the dependency:

numa_init() has already called init_func(), which is responsible for
setting numa_nodes_parsed, so use this nodemask instead of re-finding it
when calling numa_emulation().

> This means we can get the physnode_mask directly from numa_nodes_parsed. At
> the same time, this patch correct the comment of these two functions.
>
> Signed-off-by: Wei Yang <richard.weiyang@gmail.com>

Acked-by: David Rientjes <rientjes@google.com>

\
 
 \ /
  Last update: 2017-04-11 02:27    [W:0.104 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site