Commit 244b16a9 authored by Martin Hicks's avatar Martin Hicks Committed by David Mosberger

[PATCH] ia64: paddr_to_nid fixup

Here is a small patch for paddr_to_nid().  This fix is already in 2.4
and is used in the case where a NUMA kernel is running on a machine
without a SRAT ACPI table.  Without this patch the node info is not
correctly located.
parent 0800f5e0
......@@ -42,5 +42,5 @@ paddr_to_nid(unsigned long paddr)
paddr < node_memblk[i].start_paddr + node_memblk[i].size)
break;
return (i < num_memblks) ? node_memblk[i].nid : -1;
return (i < num_memblks) ? node_memblk[i].nid : (num_memblks ? -1 : 0);
}
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