]> xenbits.xensource.com Git - xen.git/commit
x86/NUMA: fix setup_node()
authorJan Beulich <jbeulich@suse.com>
Mon, 31 Aug 2015 11:51:52 +0000 (13:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 31 Aug 2015 11:51:52 +0000 (13:51 +0200)
commit8f945d36d9bddd5b589ba23c7322b30d623dd084
treec2d5629cb9631bd84a8030f7bcde96786648529e
parentea0b5f0a6b3fe8991cf767770e09addd589102b4
x86/NUMA: fix setup_node()

The function referenced an __initdata object (nodes_found). Since this
being a node mask was more complicated than needed, the variable gets
replaced by a simple counter. Check at once that the count of nodes
doesn't go beyond MAX_NUMNODES.

Also consolidate four printk()s related to the function's use into just
one.

Finally (quite the opposite of the above issue) __init-annotate
nodes_cover_memory().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/srat.c