Commit 4ed8eeb9 authored by Kimio Suganuma's avatar Kimio Suganuma Committed by David Mosberger

[PATCH] ia64: ACPI NUMA bugfix

parent 78314ba8
...@@ -473,7 +473,6 @@ static struct acpi_table_slit __initdata *slit_table; ...@@ -473,7 +473,6 @@ static struct acpi_table_slit __initdata *slit_table;
void __init void __init
acpi_numa_slit_init (struct acpi_table_slit *slit) acpi_numa_slit_init (struct acpi_table_slit *slit)
{ {
int i, j, node_from, node_to;
u32 len; u32 len;
len = sizeof(struct acpi_table_header) + 8 len = sizeof(struct acpi_table_header) + 8
...@@ -508,9 +507,6 @@ acpi_numa_memory_affinity_init (struct acpi_table_memory_affinity *ma) ...@@ -508,9 +507,6 @@ acpi_numa_memory_affinity_init (struct acpi_table_memory_affinity *ma)
pxm = ma->proximity_domain; pxm = ma->proximity_domain;
/* record this node in proximity bitmap */
pxm_bit_set(pxm);
/* fill node memory chunk structure */ /* fill node memory chunk structure */
paddr = ma->base_addr_hi; paddr = ma->base_addr_hi;
paddr = (paddr << 32) | ma->base_addr_lo; paddr = (paddr << 32) | ma->base_addr_lo;
...@@ -523,6 +519,13 @@ acpi_numa_memory_affinity_init (struct acpi_table_memory_affinity *ma) ...@@ -523,6 +519,13 @@ acpi_numa_memory_affinity_init (struct acpi_table_memory_affinity *ma)
return; return;
} }
/* Ignore disabled entries */
if (!ma->flags.enabled)
return;
/* record this node in proximity bitmap */
pxm_bit_set(pxm);
/* Insertion sort based on base address */ /* Insertion sort based on base address */
pend = &node_memblk[num_memblks]; pend = &node_memblk[num_memblks];
for (p = &node_memblk[0]; p < pend; p++) { for (p = &node_memblk[0]; p < pend; p++) {
...@@ -542,7 +545,7 @@ acpi_numa_memory_affinity_init (struct acpi_table_memory_affinity *ma) ...@@ -542,7 +545,7 @@ acpi_numa_memory_affinity_init (struct acpi_table_memory_affinity *ma)
void __init void __init
acpi_numa_arch_fixup(void) acpi_numa_arch_fixup(void)
{ {
int i, j; int i, j, node_from, node_to;
/* calculate total number of nodes in system from PXM bitmap */ /* calculate total number of nodes in system from PXM bitmap */
numnodes = 0; /* init total nodes in system */ numnodes = 0; /* init total nodes in system */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment