diff options
| author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-11 12:22:27 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-11 12:22:27 -0500 |
| commit | 9b80b11c3faa460cf42904a1e368bf2cd075aff6 (patch) | |
| tree | ecc349bbb90856c97be1b93cc9595ceea82fe2c5 /include/asm-powerpc/topology.h | |
| parent | b0b7b8eac33dc0f58ce9e7b7a61cf6529ee0b38c (diff) | |
| parent | 271c3f35bd36613513e2c2cc90dc914a84df116e (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc-merge
Diffstat (limited to 'include/asm-powerpc/topology.h')
| -rw-r--r-- | include/asm-powerpc/topology.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/asm-powerpc/topology.h b/include/asm-powerpc/topology.h index 2512e3836b..015d28746e 100644 --- a/include/asm-powerpc/topology.h +++ b/include/asm-powerpc/topology.h | |||
| @@ -9,15 +9,7 @@ | |||
| 9 | 9 | ||
| 10 | static inline int cpu_to_node(int cpu) | 10 | static inline int cpu_to_node(int cpu) |
| 11 | { | 11 | { |
| 12 | int node; | 12 | return numa_cpu_lookup_table[cpu]; |
| 13 | |||
| 14 | node = numa_cpu_lookup_table[cpu]; | ||
| 15 | |||
| 16 | #ifdef DEBUG_NUMA | ||
| 17 | BUG_ON(node == -1); | ||
| 18 | #endif | ||
| 19 | |||
| 20 | return node; | ||
| 21 | } | 13 | } |
| 22 | 14 | ||
| 23 | #define parent_node(node) (node) | 15 | #define parent_node(node) (node) |
| @@ -37,8 +29,6 @@ static inline int node_to_first_cpu(int node) | |||
| 37 | #define pcibus_to_node(node) (-1) | 29 | #define pcibus_to_node(node) (-1) |
| 38 | #define pcibus_to_cpumask(bus) (cpu_online_map) | 30 | #define pcibus_to_cpumask(bus) (cpu_online_map) |
| 39 | 31 | ||
| 40 | #define nr_cpus_node(node) (nr_cpus_in_node[node]) | ||
| 41 | |||
| 42 | /* sched_domains SD_NODE_INIT for PPC64 machines */ | 32 | /* sched_domains SD_NODE_INIT for PPC64 machines */ |
| 43 | #define SD_NODE_INIT (struct sched_domain) { \ | 33 | #define SD_NODE_INIT (struct sched_domain) { \ |
| 44 | .span = CPU_MASK_NONE, \ | 34 | .span = CPU_MASK_NONE, \ |
