search for: for_each_node_mask

Displaying 3 results from an estimated 3 matches for "for_each_node_mask".

2009 Aug 28
2
[PATCH] x86/numa: fix c/s 20120 (Fix SRAT check for discontig memory)
...2009-08-24.orig/xen/arch/x86/srat.c 2009-08-28 00:00:00.000000000 +0200 +++ 2009-08-24/xen/arch/x86/srat.c 2009-08-28 12:12:40.000000000 +0200 @@ -249,15 +249,23 @@ static int nodes_cover_memory(void) start = e820.map[i].addr; end = e820.map[i].addr + e820.map[i].size - 1; - found = 0; - for_each_node_mask(j, nodes_parsed) { - if (start >= nodes[j].start && end <= nodes[j].end) { - found = 1; - break; - } - } + do { + found = 0; + for_each_node_mask(j, nodes_parsed) + if (start < nodes[j].end + && end > nodes[j].start) { + if (start >= node...
2009 Aug 24
0
[PATCH] Fix SRAT check for discontig memory
...ude <xen/nodemask.h> #include <xen/acpi.h> #include <xen/numa.h> +#include <asm/e820.h> #include <asm/page.h> static struct acpi_table_slit *acpi_slit; @@ -236,23 +237,31 @@ static int nodes_cover_memory(void) { int i; - u64 pxmram, e820ram; - pxmram = 0; - for_each_node_mask(i, nodes_parsed) { - u64 s = nodes[i].start >> PAGE_SHIFT; - u64 e = nodes[i].end >> PAGE_SHIFT; - pxmram += e - s; - } + for (i = 0; i < e820.nr_map; i++) { + int j, found; + unsigned long long start, end; - e820ram = max_page; - /* We seem to lose 3 pages somewhere. Allow a...
2013 Sep 17
1
[PATCH] xen: numa-sched: leave node-affinity alone if not in "auto" mode
...node_set(node, nodemask); - - d->node_affinity = nodemask; - } - else - { - /* Node-affinity is provided by someone else, just filter out cpus - * that are either offline or not in the affinity of any vcpus. */ - nodemask = d->node_affinity; - for_each_node_mask ( node, d->node_affinity ) - if ( !cpumask_intersects(&node_to_cpumask(node), cpumask) ) - node_clear(node, nodemask);//d->node_affinity); - - /* Avoid loosing track of node-affinity because of a bad - * vcpu-affinity has been specified. */ -...