From ad5f30c47dc5216d4437621e53471170a55198ec Mon Sep 17 00:00:00 2001 From: Matthew Dobson Date: Mon, 18 Oct 2004 09:11:39 -0700 Subject: [PATCH] [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: Andrew Morton Signed-off-by: Linus Torvalds --- include/asm-alpha/topology.h | 3 --- include/asm-generic/topology.h | 5 ----- include/asm-i386/topology.h | 3 --- include/asm-ia64/topology.h | 3 --- include/asm-m32r/topology.h | 5 ----- include/asm-mips/mach-ip27/topology.h | 3 --- include/asm-ppc64/topology.h | 3 --- include/asm-x86_64/topology.h | 2 -- 8 files changed, 27 deletions(-) diff --git a/include/asm-alpha/topology.h b/include/asm-alpha/topology.h index 271d21c24d890..eb740e280d9c7 100644 --- a/include/asm-alpha/topology.h +++ b/include/asm-alpha/topology.h @@ -39,9 +39,6 @@ static inline cpumask_t node_to_cpumask(int node) return node_cpu_mask; } -/* Cross-node load balancing interval. */ -# define NODE_BALANCE_RATE 10 - #define pcibus_to_cpumask(bus) (cpu_online_map) #else /* CONFIG_NUMA */ diff --git a/include/asm-generic/topology.h b/include/asm-generic/topology.h index 8f84159f0f4b5..ec96e8b0f1901 100644 --- a/include/asm-generic/topology.h +++ b/include/asm-generic/topology.h @@ -45,9 +45,4 @@ #define pcibus_to_cpumask(bus) (cpu_online_map) #endif -/* Cross-node load balancing interval. */ -#ifndef NODE_BALANCE_RATE -#define NODE_BALANCE_RATE 10 -#endif - #endif /* _ASM_GENERIC_TOPOLOGY_H */ diff --git a/include/asm-i386/topology.h b/include/asm-i386/topology.h index 1c2f0e85b5fbf..d2c836023a074 100644 --- a/include/asm-i386/topology.h +++ b/include/asm-i386/topology.h @@ -69,9 +69,6 @@ static inline cpumask_t pcibus_to_cpumask(int bus) /* Node-to-Node distance */ #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 */ #define SD_NODE_INIT (struct sched_domain) { \ .span = CPU_MASK_NONE, \ diff --git a/include/asm-ia64/topology.h b/include/asm-ia64/topology.h index a67214893b942..1062f02b088e0 100644 --- a/include/asm-ia64/topology.h +++ b/include/asm-ia64/topology.h @@ -40,9 +40,6 @@ */ #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); /* sched_domains SD_NODE_INIT for IA64 NUMA machines */ diff --git a/include/asm-m32r/topology.h b/include/asm-m32r/topology.h index b5a3ea19229d9..299a89d91bde3 100644 --- a/include/asm-m32r/topology.h +++ b/include/asm-m32r/topology.h @@ -45,9 +45,4 @@ #define pcibus_to_cpumask(bus) (cpu_online_map) #endif -/* Cross-node load balancing interval. */ -#ifndef NODE_BALANCE_RATE -#define NODE_BALANCE_RATE 10 -#endif - #endif /* _ASM_M32R_TOPOLOGY_H */ diff --git a/include/asm-mips/mach-ip27/topology.h b/include/asm-mips/mach-ip27/topology.h index 0e93126137485..de8eb53eb9307 100644 --- a/include/asm-mips/mach-ip27/topology.h +++ b/include/asm-mips/mach-ip27/topology.h @@ -12,7 +12,4 @@ extern int node_distance(nasid_t nasid_a, nasid_t nasid_b); #define node_distance(from, to) node_distance(from, to) -/* Cross-node load balancing interval. */ -#define NODE_BALANCE_RATE 10 - #endif /* _ASM_MACH_TOPOLOGY_H */ diff --git a/include/asm-ppc64/topology.h b/include/asm-ppc64/topology.h index 3dca822627e47..ed630fc5cf4a6 100644 --- a/include/asm-ppc64/topology.h +++ b/include/asm-ppc64/topology.h @@ -37,9 +37,6 @@ static inline int node_to_first_cpu(int 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 */ #define SD_NODE_INIT (struct sched_domain) { \ .span = CPU_MASK_NONE, \ diff --git a/include/asm-x86_64/topology.h b/include/asm-x86_64/topology.h index 1dc2aa81bbeea..e52d00b0bf166 100644 --- a/include/asm-x86_64/topology.h +++ b/include/asm-x86_64/topology.h @@ -32,8 +32,6 @@ static inline cpumask_t __pcibus_to_cpumask(int bus) /* broken generic file uses #ifndef later on this */ #define pcibus_to_cpumask(bus) __pcibus_to_cpumask(bus) -#define NODE_BALANCE_RATE 30 /* CHECKME */ - #ifdef CONFIG_NUMA /* sched_domains SD_NODE_INIT for x86_64 machines */ #define SD_NODE_INIT (struct sched_domain) { \ -- 2.53.0