Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80352
b: refs/heads/master
c: 5f5cd8f
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent efd00d8 commit de37a43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: c49a4955ea504c82f6b690491639bba5b8c1dc47
refs/heads/master: 5f5cd8fd60c71ce47d2ce4e60e7ccbc306e91c64
9 changes: 5 additions & 4 deletions trunk/include/asm-x86/topology.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ static inline int early_cpu_to_node(int cpu)

static inline int cpu_to_node(int cpu)
{
#ifdef CONFIG_DEBUG_PER_CPU_MAPS
if(x86_cpu_to_node_map_early_ptr) {
#ifdef CONFIG_DEBUG_PER_CPU_MAPS
if (x86_cpu_to_node_map_early_ptr) {
printk("KERN_NOTICE cpu_to_node(%d): usage too early!\n",
(int)cpu);
BUG();
dump_stack();
return ((int *)x86_cpu_to_node_map_early_ptr)[cpu];
}
#endif
if(per_cpu_offset(cpu))
if (per_cpu_offset(cpu))
return per_cpu(x86_cpu_to_node_map, cpu);
else
return NUMA_NO_NODE;
Expand Down

0 comments on commit de37a43

Please sign in to comment.