Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62354
b: refs/heads/master
c: a2e212d
h: refs/heads/master
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Jul 22, 2007
1 parent 957f2fa commit eca8905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 42ee2b74140b69fa24da1c671b03c9f8019e6f62
refs/heads/master: a2e212dae57071d4a4a6cbbc12d70c628fd47ad2
6 changes: 3 additions & 3 deletions trunk/arch/x86_64/mm/srat.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ static __init int slit_valid(struct acpi_table_slit *slit)
for (j = 0; j < d; j++) {
u8 val = slit->entry[d*i + j];
if (i == j) {
if (val != 10)
if (val != LOCAL_DISTANCE)
return 0;
} else if (val <= 10)
} else if (val <= LOCAL_DISTANCE)
return 0;
}
}
Expand Down Expand Up @@ -464,7 +464,7 @@ int __node_distance(int a, int b)
int index;

if (!acpi_slit)
return a == b ? 10 : 20;
return a == b ? LOCAL_DISTANCE : REMOTE_DISTANCE;
index = acpi_slit->locality_count * node_to_pxm(a);
return acpi_slit->entry[index + node_to_pxm(b)];
}
Expand Down

0 comments on commit eca8905

Please sign in to comment.