]> xenbits.xensource.com Git - xen.git/commit
x86/NUMA: fix setup_node()
authorJan Beulich <jbeulich@suse.com>
Thu, 10 Sep 2015 13:53:37 +0000 (15:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Sep 2015 13:53:37 +0000 (15:53 +0200)
commit8bea7194a645d5ecb27ad2874eeff7a5734510ce
tree109d37f7bd76f165b54d0bacb1e1090aec826a23
parent181ebad4a0e9f140054208b17e4936f85c4ee39c
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 three 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>
master commit: 8f945d36d9bddd5b589ba23c7322b30d623dd084
master date: 2015-08-31 13:51:52 +0200
xen/arch/x86/srat.c