diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2014-03-04 16:07:37 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-03-11 07:05:45 -0400 |
commit | 36fc5500bb1907bea7e9b4785dd00abf714d556f (patch) | |
tree | 0d1033485abe2aafc068c6b04d4b6d34c52cb730 | |
parent | 156654f491dd8d52687a5fbe1637f472a52ce75b (diff) |
sched: Remove unused mc_capable() and smt_capable()
Remove mc_capable() and smt_capable(). Neither is used.
Both were added by 5c45bf279d37 ("sched: mc/smt power savings sched
policy"). Uses of both were removed by 8e7fbcbc22c1 ("sched: Remove stale
power aware scheduling remnants and dysfunctional knobs").
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Link: http://lkml.kernel.org/r/20140304210737.16893.54289.stgit@bhelgaas-glaptop.roam.corp.google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/arm/include/asm/topology.h | 3 | ||||
-rw-r--r-- | arch/ia64/include/asm/topology.h | 1 | ||||
-rw-r--r-- | arch/mips/include/asm/topology.h | 4 | ||||
-rw-r--r-- | arch/powerpc/include/asm/topology.h | 1 | ||||
-rw-r--r-- | arch/sparc/include/asm/topology_64.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/topology.h | 6 |
6 files changed, 0 insertions, 17 deletions
diff --git a/arch/arm/include/asm/topology.h b/arch/arm/include/asm/topology.h index 58b8b84adcd2..2fe85fff5cca 100644 --- a/arch/arm/include/asm/topology.h +++ b/arch/arm/include/asm/topology.h | |||
@@ -20,9 +20,6 @@ extern struct cputopo_arm cpu_topology[NR_CPUS]; | |||
20 | #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) | 20 | #define topology_core_cpumask(cpu) (&cpu_topology[cpu].core_sibling) |
21 | #define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) | 21 | #define topology_thread_cpumask(cpu) (&cpu_topology[cpu].thread_sibling) |
22 | 22 | ||
23 | #define mc_capable() (cpu_topology[0].socket_id != -1) | ||
24 | #define smt_capable() (cpu_topology[0].thread_id != -1) | ||
25 | |||
26 | void init_cpu_topology(void); | 23 | void init_cpu_topology(void); |
27 | void store_cpu_topology(unsigned int cpuid); | 24 | void store_cpu_topology(unsigned int cpuid); |
28 | const struct cpumask *cpu_coregroup_mask(int cpu); | 25 | const struct cpumask *cpu_coregroup_mask(int cpu); |
diff --git a/arch/ia64/include/asm/topology.h b/arch/ia64/include/asm/topology.h index a2496e449b75..5cb55a1e606b 100644 --- a/arch/ia64/include/asm/topology.h +++ b/arch/ia64/include/asm/topology.h | |||
@@ -77,7 +77,6 @@ void build_cpu_to_node_map(void); | |||
77 | #define topology_core_id(cpu) (cpu_data(cpu)->core_id) | 77 | #define topology_core_id(cpu) (cpu_data(cpu)->core_id) |
78 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) | 78 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) |
79 | #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) | 79 | #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) |
80 | #define smt_capable() (smp_num_siblings > 1) | ||
81 | #endif | 80 | #endif |
82 | 81 | ||
83 | extern void arch_fix_phys_package_id(int num, u32 slot); | 82 | extern void arch_fix_phys_package_id(int num, u32 slot); |
diff --git a/arch/mips/include/asm/topology.h b/arch/mips/include/asm/topology.h index 12609a17dc8b..20ea4859c822 100644 --- a/arch/mips/include/asm/topology.h +++ b/arch/mips/include/asm/topology.h | |||
@@ -10,8 +10,4 @@ | |||
10 | 10 | ||
11 | #include <topology.h> | 11 | #include <topology.h> |
12 | 12 | ||
13 | #ifdef CONFIG_SMP | ||
14 | #define smt_capable() (smp_num_siblings > 1) | ||
15 | #endif | ||
16 | |||
17 | #endif /* __ASM_TOPOLOGY_H */ | 13 | #endif /* __ASM_TOPOLOGY_H */ |
diff --git a/arch/powerpc/include/asm/topology.h b/arch/powerpc/include/asm/topology.h index d0b5fca6b077..c9202151079f 100644 --- a/arch/powerpc/include/asm/topology.h +++ b/arch/powerpc/include/asm/topology.h | |||
@@ -99,7 +99,6 @@ static inline int prrn_is_enabled(void) | |||
99 | 99 | ||
100 | #ifdef CONFIG_SMP | 100 | #ifdef CONFIG_SMP |
101 | #include <asm/cputable.h> | 101 | #include <asm/cputable.h> |
102 | #define smt_capable() (cpu_has_feature(CPU_FTR_SMT)) | ||
103 | 102 | ||
104 | #ifdef CONFIG_PPC64 | 103 | #ifdef CONFIG_PPC64 |
105 | #include <asm/smp.h> | 104 | #include <asm/smp.h> |
diff --git a/arch/sparc/include/asm/topology_64.h b/arch/sparc/include/asm/topology_64.h index 1754390a426f..a2d10fc64faf 100644 --- a/arch/sparc/include/asm/topology_64.h +++ b/arch/sparc/include/asm/topology_64.h | |||
@@ -42,8 +42,6 @@ static inline int pcibus_to_node(struct pci_bus *pbus) | |||
42 | #define topology_core_id(cpu) (cpu_data(cpu).core_id) | 42 | #define topology_core_id(cpu) (cpu_data(cpu).core_id) |
43 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) | 43 | #define topology_core_cpumask(cpu) (&cpu_core_map[cpu]) |
44 | #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) | 44 | #define topology_thread_cpumask(cpu) (&per_cpu(cpu_sibling_map, cpu)) |
45 | #define mc_capable() (sparc64_multi_core) | ||
46 | #define smt_capable() (sparc64_multi_core) | ||
47 | #endif /* CONFIG_SMP */ | 45 | #endif /* CONFIG_SMP */ |
48 | 46 | ||
49 | extern cpumask_t cpu_core_map[NR_CPUS]; | 47 | extern cpumask_t cpu_core_map[NR_CPUS]; |
diff --git a/arch/x86/include/asm/topology.h b/arch/x86/include/asm/topology.h index d35f24e231cd..9bcc724cafdd 100644 --- a/arch/x86/include/asm/topology.h +++ b/arch/x86/include/asm/topology.h | |||
@@ -133,12 +133,6 @@ static inline void arch_fix_phys_package_id(int num, u32 slot) | |||
133 | struct pci_bus; | 133 | struct pci_bus; |
134 | void x86_pci_root_bus_resources(int bus, struct list_head *resources); | 134 | void x86_pci_root_bus_resources(int bus, struct list_head *resources); |
135 | 135 | ||
136 | #ifdef CONFIG_SMP | ||
137 | #define mc_capable() ((boot_cpu_data.x86_max_cores > 1) && \ | ||
138 | (cpumask_weight(cpu_core_mask(0)) != nr_cpu_ids)) | ||
139 | #define smt_capable() (smp_num_siblings > 1) | ||
140 | #endif | ||
141 | |||
142 | #ifdef CONFIG_NUMA | 136 | #ifdef CONFIG_NUMA |
143 | extern int get_mp_bus_to_node(int busnum); | 137 | extern int get_mp_bus_to_node(int busnum); |
144 | extern void set_mp_bus_to_node(int busnum, int node); | 138 | extern void set_mp_bus_to_node(int busnum, int node); |