Commit ad5f30c4 authored by Matthew Dobson's avatar Matthew Dobson Committed by Linus Torvalds

[PATCH] sched: remove NODE_BALANCE_RATE definitions

NODE_BALANCE_RATE is defined all over the place, but used nowhere.  Let's
remove it.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7b2565a8
...@@ -39,9 +39,6 @@ static inline cpumask_t node_to_cpumask(int node) ...@@ -39,9 +39,6 @@ static inline cpumask_t node_to_cpumask(int node)
return node_cpu_mask; return node_cpu_mask;
} }
/* Cross-node load balancing interval. */
# define NODE_BALANCE_RATE 10
#define pcibus_to_cpumask(bus) (cpu_online_map) #define pcibus_to_cpumask(bus) (cpu_online_map)
#else /* CONFIG_NUMA */ #else /* CONFIG_NUMA */
......
...@@ -45,9 +45,4 @@ ...@@ -45,9 +45,4 @@
#define pcibus_to_cpumask(bus) (cpu_online_map) #define pcibus_to_cpumask(bus) (cpu_online_map)
#endif #endif
/* Cross-node load balancing interval. */
#ifndef NODE_BALANCE_RATE
#define NODE_BALANCE_RATE 10
#endif
#endif /* _ASM_GENERIC_TOPOLOGY_H */ #endif /* _ASM_GENERIC_TOPOLOGY_H */
...@@ -69,9 +69,6 @@ static inline cpumask_t pcibus_to_cpumask(int bus) ...@@ -69,9 +69,6 @@ static inline cpumask_t pcibus_to_cpumask(int bus)
/* Node-to-Node distance */ /* Node-to-Node distance */
#define node_distance(from, to) ((from) != (to)) #define node_distance(from, to) ((from) != (to))
/* Cross-node load balancing interval. */
#define NODE_BALANCE_RATE 100
/* sched_domains SD_NODE_INIT for NUMAQ machines */ /* sched_domains SD_NODE_INIT for NUMAQ machines */
#define SD_NODE_INIT (struct sched_domain) { \ #define SD_NODE_INIT (struct sched_domain) { \
.span = CPU_MASK_NONE, \ .span = CPU_MASK_NONE, \
......
...@@ -40,9 +40,6 @@ ...@@ -40,9 +40,6 @@
*/ */
#define node_to_first_cpu(node) (__ffs(node_to_cpumask(node))) #define node_to_first_cpu(node) (__ffs(node_to_cpumask(node)))
/* Cross-node load balancing interval. */
#define NODE_BALANCE_RATE 10
void build_cpu_to_node_map(void); void build_cpu_to_node_map(void);
/* sched_domains SD_NODE_INIT for IA64 NUMA machines */ /* sched_domains SD_NODE_INIT for IA64 NUMA machines */
......
...@@ -45,9 +45,4 @@ ...@@ -45,9 +45,4 @@
#define pcibus_to_cpumask(bus) (cpu_online_map) #define pcibus_to_cpumask(bus) (cpu_online_map)
#endif #endif
/* Cross-node load balancing interval. */
#ifndef NODE_BALANCE_RATE
#define NODE_BALANCE_RATE 10
#endif
#endif /* _ASM_M32R_TOPOLOGY_H */ #endif /* _ASM_M32R_TOPOLOGY_H */
...@@ -12,7 +12,4 @@ ...@@ -12,7 +12,4 @@
extern int node_distance(nasid_t nasid_a, nasid_t nasid_b); extern int node_distance(nasid_t nasid_a, nasid_t nasid_b);
#define node_distance(from, to) node_distance(from, to) #define node_distance(from, to) node_distance(from, to)
/* Cross-node load balancing interval. */
#define NODE_BALANCE_RATE 10
#endif /* _ASM_MACH_TOPOLOGY_H */ #endif /* _ASM_MACH_TOPOLOGY_H */
...@@ -37,9 +37,6 @@ static inline int node_to_first_cpu(int node) ...@@ -37,9 +37,6 @@ static inline int node_to_first_cpu(int node)
#define nr_cpus_node(node) (nr_cpus_in_node[node]) #define nr_cpus_node(node) (nr_cpus_in_node[node])
/* Cross-node load balancing interval. */
#define NODE_BALANCE_RATE 10
/* sched_domains SD_NODE_INIT for PPC64 machines */ /* sched_domains SD_NODE_INIT for PPC64 machines */
#define SD_NODE_INIT (struct sched_domain) { \ #define SD_NODE_INIT (struct sched_domain) { \
.span = CPU_MASK_NONE, \ .span = CPU_MASK_NONE, \
......
...@@ -32,8 +32,6 @@ static inline cpumask_t __pcibus_to_cpumask(int bus) ...@@ -32,8 +32,6 @@ static inline cpumask_t __pcibus_to_cpumask(int bus)
/* broken generic file uses #ifndef later on this */ /* broken generic file uses #ifndef later on this */
#define pcibus_to_cpumask(bus) __pcibus_to_cpumask(bus) #define pcibus_to_cpumask(bus) __pcibus_to_cpumask(bus)
#define NODE_BALANCE_RATE 30 /* CHECKME */
#ifdef CONFIG_NUMA #ifdef CONFIG_NUMA
/* sched_domains SD_NODE_INIT for x86_64 machines */ /* sched_domains SD_NODE_INIT for x86_64 machines */
#define SD_NODE_INIT (struct sched_domain) { \ #define SD_NODE_INIT (struct sched_domain) { \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment