aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ppc64/topology.h
diff options
context:
space:
mode:
authorjdl@freescale.com <jdl@freescale.com>2005-09-07 16:59:48 -0400
committerPaul Mackerras <paulus@samba.org>2005-09-09 08:11:35 -0400
commitdd56fdf23dfa0127d512b73d4238dbd2b5a7c1eb (patch)
tree59f952b87d4bec5f11c578a384c3aaa2ddf5860d /include/asm-ppc64/topology.h
parent64807081e38703617cf9a5d71db14ea2b3e1cb04 (diff)
[PATCH] powerpc: Merge a few more include files
Merge a few asm-ppc and asm-ppc64 header files. Note: the merge of setup.h intentionally does not carry forward the m68k cruft. That means this patch continues to break the already broken amiga on the ppc32. Signed-off-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/topology.h')
-rw-r--r--include/asm-ppc64/topology.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/include/asm-ppc64/topology.h b/include/asm-ppc64/topology.h
deleted file mode 100644
index 1e9b19073230..000000000000
--- a/include/asm-ppc64/topology.h
+++ /dev/null
@@ -1,69 +0,0 @@
1#ifndef _ASM_PPC64_TOPOLOGY_H
2#define _ASM_PPC64_TOPOLOGY_H
3
4#include <linux/config.h>
5#include <asm/mmzone.h>
6
7#ifdef CONFIG_NUMA
8
9static inline int cpu_to_node(int cpu)
10{
11 int node;
12
13 node = numa_cpu_lookup_table[cpu];
14
15#ifdef DEBUG_NUMA
16 BUG_ON(node == -1);
17#endif
18
19 return node;
20}
21
22#define parent_node(node) (node)
23
24static inline cpumask_t node_to_cpumask(int node)
25{
26 return numa_cpumask_lookup_table[node];
27}
28
29static inline int node_to_first_cpu(int node)
30{
31 cpumask_t tmp;
32 tmp = node_to_cpumask(node);
33 return first_cpu(tmp);
34}
35
36#define pcibus_to_node(node) (-1)
37#define pcibus_to_cpumask(bus) (cpu_online_map)
38
39#define nr_cpus_node(node) (nr_cpus_in_node[node])
40
41/* sched_domains SD_NODE_INIT for PPC64 machines */
42#define SD_NODE_INIT (struct sched_domain) { \
43 .span = CPU_MASK_NONE, \
44 .parent = NULL, \
45 .groups = NULL, \
46 .min_interval = 8, \
47 .max_interval = 32, \
48 .busy_factor = 32, \
49 .imbalance_pct = 125, \
50 .cache_hot_time = (10*1000000), \
51 .cache_nice_tries = 1, \
52 .per_cpu_gain = 100, \
53 .flags = SD_LOAD_BALANCE \
54 | SD_BALANCE_EXEC \
55 | SD_BALANCE_NEWIDLE \
56 | SD_WAKE_IDLE \
57 | SD_WAKE_BALANCE, \
58 .last_balance = jiffies, \
59 .balance_interval = 1, \
60 .nr_balance_failed = 0, \
61}
62
63#else
64
65#include <asm-generic/topology.h>
66
67#endif /* CONFIG_NUMA */
68
69#endif /* _ASM_PPC64_TOPOLOGY_H */