Displaying 1 result from an estimated 1 matches for "e820ram".
Did you mean:
e820_ram
2009 Aug 24
0
[PATCH] Fix SRAT check for discontig memory
...00
@@ -17,6 +17,7 @@
#include <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 se...