diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/include/asm/topology.h | 25 | ||||
-rw-r--r-- | arch/mips/include/asm/mach-ip27/topology.h | 17 | ||||
-rw-r--r-- | arch/powerpc/include/asm/topology.h | 36 | ||||
-rw-r--r-- | arch/sh/include/asm/topology.h | 25 | ||||
-rw-r--r-- | arch/sparc/include/asm/topology_64.h | 19 | ||||
-rw-r--r-- | arch/tile/include/asm/topology.h | 26 | ||||
-rw-r--r-- | arch/x86/include/asm/topology.h | 38 |
7 files changed, 0 insertions, 186 deletions
diff --git a/arch/ia64/include/asm/topology.h b/arch/ia64/include/asm/topology.h index 09f646753d1a..a2496e449b75 100644 --- a/arch/ia64/include/asm/topology.h +++ b/arch/ia64/include/asm/topology.h | |||
@@ -70,31 +70,6 @@ void build_cpu_to_node_map(void); | |||
70 | .nr_balance_failed = 0, \ | 70 | .nr_balance_failed = 0, \ |
71 | } | 71 | } |
72 | 72 | ||
73 | /* sched_domains SD_NODE_INIT for IA64 NUMA machines */ | ||
74 | #define SD_NODE_INIT (struct sched_domain) { \ | ||
75 | .parent = NULL, \ | ||
76 | .child = NULL, \ | ||
77 | .groups = NULL, \ | ||
78 | .min_interval = 8, \ | ||
79 | .max_interval = 8*(min(num_online_cpus(), 32U)), \ | ||
80 | .busy_factor = 64, \ | ||
81 | .imbalance_pct = 125, \ | ||
82 | .cache_nice_tries = 2, \ | ||
83 | .busy_idx = 3, \ | ||
84 | .idle_idx = 2, \ | ||
85 | .newidle_idx = 0, \ | ||
86 | .wake_idx = 0, \ | ||
87 | .forkexec_idx = 0, \ | ||
88 | .flags = SD_LOAD_BALANCE \ | ||
89 | | SD_BALANCE_NEWIDLE \ | ||
90 | | SD_BALANCE_EXEC \ | ||
91 | | SD_BALANCE_FORK \ | ||
92 | | SD_SERIALIZE, \ | ||
93 | .last_balance = jiffies, \ | ||
94 | .balance_interval = 64, \ | ||
95 | .nr_balance_failed = 0, \ | ||
96 | } | ||
97 | |||
98 | #endif /* CONFIG_NUMA */ | 73 | #endif /* CONFIG_NUMA */ |
99 | 74 | ||
100 | #ifdef CONFIG_SMP | 75 | #ifdef CONFIG_SMP |
diff --git a/arch/mips/include/asm/mach-ip27/topology.h b/arch/mips/include/asm/mach-ip27/topology.h index 1b1a7d1632b9..b2cf641f206f 100644 --- a/arch/mips/include/asm/mach-ip27/topology.h +++ b/arch/mips/include/asm/mach-ip27/topology.h | |||
@@ -36,23 +36,6 @@ extern unsigned char __node_distances[MAX_COMPACT_NODES][MAX_COMPACT_NODES]; | |||
36 | 36 | ||
37 | #define node_distance(from, to) (__node_distances[(from)][(to)]) | 37 | #define node_distance(from, to) (__node_distances[(from)][(to)]) |
38 | 38 | ||
39 | /* sched_domains SD_NODE_INIT for SGI IP27 machines */ | ||
40 | #define SD_NODE_INIT (struct sched_domain) { \ | ||
41 | .parent = NULL, \ | ||
42 | .child = NULL, \ | ||
43 | .groups = NULL, \ | ||
44 | .min_interval = 8, \ | ||
45 | .max_interval = 32, \ | ||
46 | .busy_factor = 32, \ | ||
47 | .imbalance_pct = 125, \ | ||
48 | .cache_nice_tries = 1, \ | ||
49 | .flags = SD_LOAD_BALANCE | \ | ||
50 | SD_BALANCE_EXEC, \ | ||
51 | .last_balance = jiffies, \ | ||
52 | .balance_interval = 1, \ | ||
53 | .nr_balance_failed = 0, \ | ||
54 | } | ||
55 | |||
56 | #include <asm-generic/topology.h> | 39 | #include <asm-generic/topology.h> |
57 | 40 | ||
58 | #endif /* _ASM_MACH_TOPOLOGY_H */ | 41 | #endif /* _ASM_MACH_TOPOLOGY_H */ |
diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h index c97185885c6d..852ed1b384f6 100644 --- a/arch/powerpc/include/asm/topology.h +++ b/arch/powerpc/include/asm/topology.h | |||
@@ -18,12 +18,6 @@ struct device_node; | |||
18 | */ | 18 | */ |
19 | #define RECLAIM_DISTANCE 10 | 19 | #define RECLAIM_DISTANCE 10 |
20 | 20 | ||
21 | /* | ||
22 | * Avoid creating an extra level of balancing (SD_ALLNODES) on the largest | ||
23 | * POWER7 boxes which have a maximum of 32 nodes. | ||
24 | */ | ||
25 | #define SD_NODES_PER_DOMAIN 32 | ||
26 | |||
27 | #include <asm/mmzone.h> | 21 | #include <asm/mmzone.h> |
28 | 22 | ||
29 | static inline int cpu_to_node(int cpu) | 23 | static inline int cpu_to_node(int cpu) |
@@ -51,36 +45,6 @@ static inline int pcibus_to_node(struct pci_bus *bus) | |||
51 | cpu_all_mask : \ | 45 | cpu_all_mask : \ |
52 | cpumask_of_node(pcibus_to_node(bus))) | 46 | cpumask_of_node(pcibus_to_node(bus))) |
53 | 47 | ||
54 | /* sched_domains SD_NODE_INIT for PPC64 machines */ | ||
55 | #define SD_NODE_INIT (struct sched_domain) { \ | ||
56 | .min_interval = 8, \ | ||
57 | .max_interval = 32, \ | ||
58 | .busy_factor = 32, \ | ||
59 | .imbalance_pct = 125, \ | ||
60 | .cache_nice_tries = 1, \ | ||
61 | .busy_idx = 3, \ | ||
62 | .idle_idx = 1, \ | ||
63 | .newidle_idx = 0, \ | ||
64 | .wake_idx = 0, \ | ||
65 | .forkexec_idx = 0, \ | ||
66 | \ | ||
67 | .flags = 1*SD_LOAD_BALANCE \ | ||
68 | | 0*SD_BALANCE_NEWIDLE \ | ||
69 | | 1*SD_BALANCE_EXEC \ | ||
70 | | 1*SD_BALANCE_FORK \ | ||
71 | | 0*SD_BALANCE_WAKE \ | ||
72 | | 1*SD_WAKE_AFFINE \ | ||
73 | | 0*SD_PREFER_LOCAL \ | ||
74 | | 0*SD_SHARE_CPUPOWER \ | ||
75 | | 0*SD_POWERSAVINGS_BALANCE \ | ||
76 | | 0*SD_SHARE_PKG_RESOURCES \ | ||
77 | | 1*SD_SERIALIZE \ | ||
78 | | 0*SD_PREFER_SIBLING \ | ||
79 | , \ | ||
80 | .last_balance = jiffies, \ | ||
81 | .balance_interval = 1, \ | ||
82 | } | ||
83 | |||
84 | extern int __node_distance(int, int); | 48 | extern int __node_distance(int, int); |
85 | #define node_distance(a, b) __node_distance(a, b) | 49 | #define node_distance(a, b) __node_distance(a, b) |
86 | 50 | ||
diff --git a/arch/sh/include/asm/topology.h b/arch/sh/include/asm/topology.h index 88e734069fa6..b0a282d65f6a 100644 --- a/arch/sh/include/asm/topology.h +++ b/arch/sh/include/asm/topology.h | |||
@@ -3,31 +3,6 @@ | |||
3 | 3 | ||
4 | #ifdef CONFIG_NUMA | 4 | #ifdef CONFIG_NUMA |
5 | 5 | ||
6 | /* sched_domains SD_NODE_INIT for sh machines */ | ||
7 | #define SD_NODE_INIT (struct sched_domain) { \ | ||
8 | .parent = NULL, \ | ||
9 | .child = NULL, \ | ||
10 | .groups = NULL, \ | ||
11 | .min_interval = 8, \ | ||
12 | .max_interval = 32, \ | ||
13 | .busy_factor = 32, \ | ||
14 | .imbalance_pct = 125, \ | ||
15 | .cache_nice_tries = 2, \ | ||
16 | .busy_idx = 3, \ | ||
17 | .idle_idx = 2, \ | ||
18 | .newidle_idx = 0, \ | ||
19 | .wake_idx = 0, \ | ||
20 | .forkexec_idx = 0, \ | ||
21 | .flags = SD_LOAD_BALANCE \ | ||
22 | | SD_BALANCE_FORK \ | ||
23 | | SD_BALANCE_EXEC \ | ||
24 | | SD_BALANCE_NEWIDLE \ | ||
25 | | SD_SERIALIZE, \ | ||
26 | .last_balance = jiffies, \ | ||
27 | .balance_interval = 1, \ | ||
28 | .nr_balance_failed = 0, \ | ||
29 | } | ||
30 | |||
31 | #define cpu_to_node(cpu) ((void)(cpu),0) | 6 | #define cpu_to_node(cpu) ((void)(cpu),0) |
32 | #define parent_node(node) ((void)(node),0) | 7 | #define parent_node(node) ((void)(node),0) |
33 | 8 | ||
diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h index 8b9c556d630b..1754390a426f 100644 --- a/arch/sparc/include/asm/topology_64.h +++ b/arch/sparc/include/asm/topology_64.h | |||
@@ -31,25 +31,6 @@ static inline int pcibus_to_node(struct pci_bus *pbus) | |||
31 | cpu_all_mask : \ | 31 | cpu_all_mask : \ |
32 | cpumask_of_node(pcibus_to_node(bus))) | 32 | cpumask_of_node(pcibus_to_node(bus))) |
33 | 33 | ||
34 | #define SD_NODE_INIT (struct sched_domain) { \ | ||
35 | .min_interval = 8, \ | ||
36 | .max_interval = 32, \ | ||
37 | .busy_factor = 32, \ | ||
38 | .imbalance_pct = 125, \ | ||
39 | .cache_nice_tries = 2, \ | ||
40 | .busy_idx = 3, \ | ||
41 | .idle_idx = 2, \ | ||
42 | .newidle_idx = 0, \ | ||
43 | .wake_idx = 0, \ | ||
44 | .forkexec_idx = 0, \ | ||
45 | .flags = SD_LOAD_BALANCE \ | ||
46 | | SD_BALANCE_FORK \ | ||
47 | | SD_BALANCE_EXEC \ | ||
48 | | SD_SERIALIZE, \ | ||
49 | .last_balance = jiffies, \ | ||
50 | .balance_interval = 1, \ | ||
51 | } | ||
52 | |||
53 | #else /* CONFIG_NUMA */ | 34 | #else /* CONFIG_NUMA */ |
54 | 35 | ||
55 | #include <asm-generic/topology.h> | 36 | #include <asm-generic/topology.h> |
diff --git a/arch/tile/include/asm/topology.h b/arch/tile/include/asm/topology.h index 6fdd0c860193..7a7ce390534f 100644 --- a/arch/tile/include/asm/topology.h +++ b/arch/tile/include/asm/topology.h | |||
@@ -78,32 +78,6 @@ static inline const struct cpumask *cpumask_of_node(int node) | |||
78 | .balance_interval = 32, \ | 78 | .balance_interval = 32, \ |
79 | } | 79 | } |
80 | 80 | ||
81 | /* sched_domains SD_NODE_INIT for TILE architecture */ | ||
82 | #define SD_NODE_INIT (struct sched_domain) { \ | ||
83 | .min_interval = 16, \ | ||
84 | .max_interval = 512, \ | ||
85 | .busy_factor = 32, \ | ||
86 | .imbalance_pct = 125, \ | ||
87 | .cache_nice_tries = 1, \ | ||
88 | .busy_idx = 3, \ | ||
89 | .idle_idx = 1, \ | ||
90 | .newidle_idx = 2, \ | ||
91 | .wake_idx = 1, \ | ||
92 | .flags = 1*SD_LOAD_BALANCE \ | ||
93 | | 1*SD_BALANCE_NEWIDLE \ | ||
94 | | 1*SD_BALANCE_EXEC \ | ||
95 | | 1*SD_BALANCE_FORK \ | ||
96 | | 0*SD_BALANCE_WAKE \ | ||
97 | | 0*SD_WAKE_AFFINE \ | ||
98 | | 0*SD_PREFER_LOCAL \ | ||
99 | | 0*SD_SHARE_CPUPOWER \ | ||
100 | | 0*SD_SHARE_PKG_RESOURCES \ | ||
101 | | 1*SD_SERIALIZE \ | ||
102 | , \ | ||
103 | .last_balance = jiffies, \ | ||
104 | .balance_interval = 128, \ | ||
105 | } | ||
106 | |||
107 | /* By definition, we create nodes based on online memory. */ | 81 | /* By definition, we create nodes based on online memory. */ |
108 | #define node_has_online_mem(nid) 1 | 82 | #define node_has_online_mem(nid) 1 |
109 | 83 | ||
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index b9676ae37ada..095b21507b6a 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h | |||
@@ -92,44 +92,6 @@ extern void setup_node_to_cpumask_map(void); | |||
92 | 92 | ||
93 | #define pcibus_to_node(bus) __pcibus_to_node(bus) | 93 | #define pcibus_to_node(bus) __pcibus_to_node(bus) |
94 | 94 | ||
95 | #ifdef CONFIG_X86_32 | ||
96 | # define SD_CACHE_NICE_TRIES 1 | ||
97 | # define SD_IDLE_IDX 1 | ||
98 | #else | ||
99 | # define SD_CACHE_NICE_TRIES 2 | ||
100 | # define SD_IDLE_IDX 2 | ||
101 | #endif | ||
102 | |||
103 | /* sched_domains SD_NODE_INIT for NUMA machines */ | ||
104 | #define SD_NODE_INIT (struct sched_domain) { \ | ||
105 | .min_interval = 8, \ | ||
106 | .max_interval = 32, \ | ||
107 | .busy_factor = 32, \ | ||
108 | .imbalance_pct = 125, \ | ||
109 | .cache_nice_tries = SD_CACHE_NICE_TRIES, \ | ||
110 | .busy_idx = 3, \ | ||
111 | .idle_idx = SD_IDLE_IDX, \ | ||
112 | .newidle_idx = 0, \ | ||
113 | .wake_idx = 0, \ | ||
114 | .forkexec_idx = 0, \ | ||
115 | \ | ||
116 | .flags = 1*SD_LOAD_BALANCE \ | ||
117 | | 1*SD_BALANCE_NEWIDLE \ | ||
118 | | 1*SD_BALANCE_EXEC \ | ||
119 | | 1*SD_BALANCE_FORK \ | ||
120 | | 0*SD_BALANCE_WAKE \ | ||
121 | | 1*SD_WAKE_AFFINE \ | ||
122 | | 0*SD_PREFER_LOCAL \ | ||
123 | | 0*SD_SHARE_CPUPOWER \ | ||
124 | | 0*SD_POWERSAVINGS_BALANCE \ | ||
125 | | 0*SD_SHARE_PKG_RESOURCES \ | ||
126 | | 1*SD_SERIALIZE \ | ||
127 | | 0*SD_PREFER_SIBLING \ | ||
128 | , \ | ||
129 | .last_balance = jiffies, \ | ||
130 | .balance_interval = 1, \ | ||
131 | } | ||
132 | |||
133 | extern int __node_distance(int, int); | 95 | extern int __node_distance(int, int); |
134 | #define node_distance(a, b) __node_distance(a, b) | 96 | #define node_distance(a, b) __node_distance(a, b) |
135 | 97 | ||