Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304991
b: refs/heads/master
c: 94c0dd3
h: refs/heads/master
i:
  304989: de9739d
  304987: 5af2ec7
  304983: 400cc99
  304975: 99b5879
  304959: 5ad6f8b
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed May 9, 2012
1 parent 2c0de18 commit 7b4c2e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: 19209bbb8612004bc20a1f70ff12926f99fe2643
refs/heads/master: 94c0dd3278dd3eae52eabf0fb77d472d0dd3e373
8 changes: 6 additions & 2 deletions trunk/arch/x86/mm/numa_emulation.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,11 @@ void __init numa_emulation(struct numa_meminfo *numa_meminfo, int numa_dist_cnt)
} else {
unsigned long n;

n = simple_strtoul(emu_cmdline, NULL, 0);
n = simple_strtoul(emu_cmdline, &emu_cmdline, 0);
ret = split_nodes_interleave(&ei, &pi, 0, max_addr, n);
}
if (*emu_cmdline == ':')
emu_cmdline++;

if (ret < 0)
goto no_emu;
Expand Down Expand Up @@ -418,7 +420,9 @@ void __init numa_emulation(struct numa_meminfo *numa_meminfo, int numa_dist_cnt)
int physj = emu_nid_to_phys[j];
int dist;

if (physi >= numa_dist_cnt || physj >= numa_dist_cnt)
if (get_option(&emu_cmdline, &dist) == 2)
;
else if (physi >= numa_dist_cnt || physj >= numa_dist_cnt)
dist = physi == physj ?
LOCAL_DISTANCE : REMOTE_DISTANCE;
else
Expand Down

0 comments on commit 7b4c2e0

Please sign in to comment.