diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-mips/mach-ip27/topology.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/asm-mips/mach-ip27/topology.h')
-rw-r--r-- | include/asm-mips/mach-ip27/topology.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/include/asm-mips/mach-ip27/topology.h b/include/asm-mips/mach-ip27/topology.h new file mode 100644 index 000000000000..a70a81257c3d --- /dev/null +++ b/include/asm-mips/mach-ip27/topology.h | |||
@@ -0,0 +1,38 @@ | |||
1 | #ifndef _ASM_MACH_TOPOLOGY_H | ||
2 | #define _ASM_MACH_TOPOLOGY_H 1 | ||
3 | |||
4 | #include <asm/sn/arch.h> | ||
5 | #include <asm/sn/hub.h> | ||
6 | #include <asm/mmzone.h> | ||
7 | |||
8 | #define cpu_to_node(cpu) (cpu_data[(cpu)].p_nodeid) | ||
9 | #define parent_node(node) (node) | ||
10 | #define node_to_cpumask(node) (hub_data(node)->h_cpus) | ||
11 | #define node_to_first_cpu(node) (first_cpu(node_to_cpumask(node))) | ||
12 | #define pcibus_to_cpumask(bus) (cpu_online_map) | ||
13 | |||
14 | extern unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES]; | ||
15 | |||
16 | #define node_distance(from, to) (__node_distances[(from)][(to)]) | ||
17 | |||
18 | /* sched_domains SD_NODE_INIT for SGI IP27 machines */ | ||
19 | #define SD_NODE_INIT (struct sched_domain) { \ | ||
20 | .span = CPU_MASK_NONE, \ | ||
21 | .parent = NULL, \ | ||
22 | .groups = NULL, \ | ||
23 | .min_interval = 8, \ | ||
24 | .max_interval = 32, \ | ||
25 | .busy_factor = 32, \ | ||
26 | .imbalance_pct = 125, \ | ||
27 | .cache_hot_time = (10*1000), \ | ||
28 | .cache_nice_tries = 1, \ | ||
29 | .per_cpu_gain = 100, \ | ||
30 | .flags = SD_LOAD_BALANCE \ | ||
31 | | SD_BALANCE_EXEC \ | ||
32 | | SD_WAKE_BALANCE, \ | ||
33 | .last_balance = jiffies, \ | ||
34 | .balance_interval = 1, \ | ||
35 | .nr_balance_failed = 0, \ | ||
36 | } | ||
37 | |||
38 | #endif /* _ASM_MACH_TOPOLOGY_H */ | ||