Displaying 1 result from an estimated 1 matches for "acpi_slit".
2009 Aug 24
0
[PATCH] Fix SRAT check for discontig memory
...x86/srat.c Mon Aug 24 08:27:30 2009 +0100
+++ b/xen/arch/x86/srat.c Mon Aug 24 15:19:34 2009 -0600
@@ -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...