diff options
author | Andy Fleming <afleming@freescale.com> | 2013-08-05 15:58:35 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 00:56:57 -0400 |
commit | 39fd40274d1f3a52152ae6fc22f428d93f1a8363 (patch) | |
tree | 52c8d88d709b541ccc3cd68bb7ce29765ca1c036 /arch/powerpc/platforms/pseries/smp.c | |
parent | 3cd852502316d42e3e75859e92d9f0a952bb55a2 (diff) |
powerpc: Convert platforms to smp_generic_cpu_bootable
T4, Cell, powernv, and pseries had the same implementation, so switch
them to use a generic version. A2 apparently had a version, but
removed it at some point, so we remove the declaration, too.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/smp.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/smp.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/powerpc/platforms/pseries/smp.c b/arch/powerpc/platforms/pseries/smp.c index 306643cc9dbc..ca2d1f6647f4 100644 --- a/arch/powerpc/platforms/pseries/smp.c +++ b/arch/powerpc/platforms/pseries/smp.c | |||
@@ -187,22 +187,6 @@ static int smp_pSeries_kick_cpu(int nr) | |||
187 | return 0; | 187 | return 0; |
188 | } | 188 | } |
189 | 189 | ||
190 | static int smp_pSeries_cpu_bootable(unsigned int nr) | ||
191 | { | ||
192 | /* Special case - we inhibit secondary thread startup | ||
193 | * during boot if the user requests it. | ||
194 | */ | ||
195 | if (system_state == SYSTEM_BOOTING && cpu_has_feature(CPU_FTR_SMT)) { | ||
196 | if (!smt_enabled_at_boot && cpu_thread_in_core(nr) != 0) | ||
197 | return 0; | ||
198 | if (smt_enabled_at_boot | ||
199 | && cpu_thread_in_core(nr) >= smt_enabled_at_boot) | ||
200 | return 0; | ||
201 | } | ||
202 | |||
203 | return 1; | ||
204 | } | ||
205 | |||
206 | /* Only used on systems that support multiple IPI mechanisms */ | 190 | /* Only used on systems that support multiple IPI mechanisms */ |
207 | static void pSeries_cause_ipi_mux(int cpu, unsigned long data) | 191 | static void pSeries_cause_ipi_mux(int cpu, unsigned long data) |
208 | { | 192 | { |
@@ -237,7 +221,7 @@ static struct smp_ops_t pSeries_xics_smp_ops = { | |||
237 | .probe = pSeries_smp_probe, | 221 | .probe = pSeries_smp_probe, |
238 | .kick_cpu = smp_pSeries_kick_cpu, | 222 | .kick_cpu = smp_pSeries_kick_cpu, |
239 | .setup_cpu = smp_xics_setup_cpu, | 223 | .setup_cpu = smp_xics_setup_cpu, |
240 | .cpu_bootable = smp_pSeries_cpu_bootable, | 224 | .cpu_bootable = smp_generic_cpu_bootable, |
241 | }; | 225 | }; |
242 | 226 | ||
243 | /* This is called very early */ | 227 | /* This is called very early */ |