Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4011
b: refs/heads/master
c: f5f1cc5
h: refs/heads/master
i:
  4009: ec345f0
  4007: 4214b7e
v: v3
  • Loading branch information
Nathan Lynch authored and Paul Mackerras committed Jun 28, 2005
1 parent c3df58b commit 8d1233f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: a341ad97245d01c923995cfe7deacd0c8aee6e16
refs/heads/master: f5f1cc5437961a4bd93d615099f26780819e72d3
7 changes: 6 additions & 1 deletion trunk/arch/ppc64/kernel/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,12 @@ static int __init topology_init(void)
struct cpu *c = &per_cpu(cpu_devices, cpu);

#ifdef CONFIG_NUMA
parent = &node_devices[cpu_to_node(cpu)];
/* The node to which a cpu belongs can't be known
* until the cpu is made present.
*/
parent = NULL;
if (cpu_present(cpu))
parent = &node_devices[cpu_to_node(cpu)];
#endif
/*
* For now, we just see if the system supports making
Expand Down

0 comments on commit 8d1233f

Please sign in to comment.