diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2014-03-04 16:07:44 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-03-11 07:05:47 -0400 |
commit | 070826820daf423eee83ee4e90bf3daf2cdd85c2 (patch) | |
tree | 1103099915cfe0a0568e2c113e2c59e0787ae187 /arch/sparc | |
parent | 36fc5500bb1907bea7e9b4785dd00abf714d556f (diff) |
sparc64, sched: Remove unused sparc64_multi_core
Remove sparc64_multi_core because it's not used any more.
It was added by a2f9f6bbb30e ("Fix {mc,smt}_capable()"), and the last uses
were removed by e637d96bf462 ("sched: Remove unused mc_capable() and
smt_capable()").
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Acked-by: David S. Miller <davem@davemloft.net>
Link: http://lkml.kernel.org/r/20140304210744.16893.75929.stgit@bhelgaas-glaptop.roam.corp.google.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/include/asm/smp_64.h | 1 | ||||
-rw-r--r-- | arch/sparc/kernel/mdesc.c | 4 | ||||
-rw-r--r-- | arch/sparc/kernel/prom_64.c | 3 | ||||
-rw-r--r-- | arch/sparc/kernel/smp_64.c | 2 |
4 files changed, 0 insertions, 10 deletions
diff --git a/arch/sparc/include/asm/smp_64.h b/arch/sparc/include/asm/smp_64.h index dd3bef4b9896..05710393959f 100644 --- a/arch/sparc/include/asm/smp_64.h +++ b/arch/sparc/include/asm/smp_64.h | |||
@@ -32,7 +32,6 @@ | |||
32 | 32 | ||
33 | DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); | 33 | DECLARE_PER_CPU(cpumask_t, cpu_sibling_map); |
34 | extern cpumask_t cpu_core_map[NR_CPUS]; | 34 | extern cpumask_t cpu_core_map[NR_CPUS]; |
35 | extern int sparc64_multi_core; | ||
36 | 35 | ||
37 | extern void arch_send_call_function_single_ipi(int cpu); | 36 | extern void arch_send_call_function_single_ipi(int cpu); |
38 | extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); | 37 | extern void arch_send_call_function_ipi_mask(const struct cpumask *mask); |
diff --git a/arch/sparc/kernel/mdesc.c b/arch/sparc/kernel/mdesc.c index b90bf23e3aab..a1a4400d4025 100644 --- a/arch/sparc/kernel/mdesc.c +++ b/arch/sparc/kernel/mdesc.c | |||
@@ -896,10 +896,6 @@ void mdesc_fill_in_cpu_data(cpumask_t *mask) | |||
896 | 896 | ||
897 | mdesc_iterate_over_cpus(fill_in_one_cpu, NULL, mask); | 897 | mdesc_iterate_over_cpus(fill_in_one_cpu, NULL, mask); |
898 | 898 | ||
899 | #ifdef CONFIG_SMP | ||
900 | sparc64_multi_core = 1; | ||
901 | #endif | ||
902 | |||
903 | hp = mdesc_grab(); | 899 | hp = mdesc_grab(); |
904 | 900 | ||
905 | set_core_ids(hp); | 901 | set_core_ids(hp); |
diff --git a/arch/sparc/kernel/prom_64.c b/arch/sparc/kernel/prom_64.c index 6b39125eb927..9a690d39c01b 100644 --- a/arch/sparc/kernel/prom_64.c +++ b/arch/sparc/kernel/prom_64.c | |||
@@ -555,9 +555,6 @@ static void *fill_in_one_cpu(struct device_node *dp, int cpuid, int arg) | |||
555 | 555 | ||
556 | cpu_data(cpuid).core_id = portid + 1; | 556 | cpu_data(cpuid).core_id = portid + 1; |
557 | cpu_data(cpuid).proc_id = portid; | 557 | cpu_data(cpuid).proc_id = portid; |
558 | #ifdef CONFIG_SMP | ||
559 | sparc64_multi_core = 1; | ||
560 | #endif | ||
561 | } else { | 558 | } else { |
562 | cpu_data(cpuid).dcache_size = | 559 | cpu_data(cpuid).dcache_size = |
563 | of_getintprop_default(dp, "dcache-size", 16 * 1024); | 560 | of_getintprop_default(dp, "dcache-size", 16 * 1024); |
diff --git a/arch/sparc/kernel/smp_64.c b/arch/sparc/kernel/smp_64.c index b085311dcd0e..9781048161ab 100644 --- a/arch/sparc/kernel/smp_64.c +++ b/arch/sparc/kernel/smp_64.c | |||
@@ -53,8 +53,6 @@ | |||
53 | 53 | ||
54 | #include "cpumap.h" | 54 | #include "cpumap.h" |
55 | 55 | ||
56 | int sparc64_multi_core __read_mostly; | ||
57 | |||
58 | DEFINE_PER_CPU(cpumask_t, cpu_sibling_map) = CPU_MASK_NONE; | 56 | DEFINE_PER_CPU(cpumask_t, cpu_sibling_map) = CPU_MASK_NONE; |
59 | cpumask_t cpu_core_map[NR_CPUS] __read_mostly = | 57 | cpumask_t cpu_core_map[NR_CPUS] __read_mostly = |
60 | { [0 ... NR_CPUS-1] = CPU_MASK_NONE }; | 58 | { [0 ... NR_CPUS-1] = CPU_MASK_NONE }; |