hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/arch/arm/mach-qcom/platsmp.c
....@@ -1,12 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2002 ARM Ltd.
34 * All Rights Reserved
45 * Copyright (c) 2010, Code Aurora Forum. All rights reserved.
56 * Copyright (c) 2014 The Linux Foundation. All rights reserved.
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License version 2 as
9
- * published by the Free Software Foundation.
107 */
118
129 #include <linux/init.h>
....@@ -46,23 +43,12 @@
4643
4744 extern void secondary_startup_arm(void);
4845
49
-static DEFINE_RAW_SPINLOCK(boot_lock);
50
-
5146 #ifdef CONFIG_HOTPLUG_CPU
5247 static void qcom_cpu_die(unsigned int cpu)
5348 {
5449 wfi();
5550 }
5651 #endif
57
-
58
-static void qcom_secondary_init(unsigned int cpu)
59
-{
60
- /*
61
- * Synchronise with the boot thread.
62
- */
63
- raw_spin_lock(&boot_lock);
64
- raw_spin_unlock(&boot_lock);
65
-}
6652
6753 static int scss_release_secondary(unsigned int cpu)
6854 {
....@@ -281,23 +267,11 @@
281267 }
282268
283269 /*
284
- * set synchronisation state between this boot processor
285
- * and the secondary one
286
- */
287
- raw_spin_lock(&boot_lock);
288
-
289
- /*
290270 * Send the secondary CPU a soft interrupt, thereby causing
291271 * the boot monitor to read the system wide flags register,
292272 * and branch to the address found there.
293273 */
294274 arch_send_wakeup_ipi_mask(cpumask_of(cpu));
295
-
296
- /*
297
- * now the secondary core is starting up let it run its
298
- * calibrations, then wait for it to finish
299
- */
300
- raw_spin_unlock(&boot_lock);
301275
302276 return ret;
303277 }
....@@ -334,7 +308,6 @@
334308
335309 static const struct smp_operations smp_msm8660_ops __initconst = {
336310 .smp_prepare_cpus = qcom_smp_prepare_cpus,
337
- .smp_secondary_init = qcom_secondary_init,
338311 .smp_boot_secondary = msm8660_boot_secondary,
339312 #ifdef CONFIG_HOTPLUG_CPU
340313 .cpu_die = qcom_cpu_die,
....@@ -344,7 +317,6 @@
344317
345318 static const struct smp_operations qcom_smp_kpssv1_ops __initconst = {
346319 .smp_prepare_cpus = qcom_smp_prepare_cpus,
347
- .smp_secondary_init = qcom_secondary_init,
348320 .smp_boot_secondary = kpssv1_boot_secondary,
349321 #ifdef CONFIG_HOTPLUG_CPU
350322 .cpu_die = qcom_cpu_die,
....@@ -354,7 +326,6 @@
354326
355327 static const struct smp_operations qcom_smp_kpssv2_ops __initconst = {
356328 .smp_prepare_cpus = qcom_smp_prepare_cpus,
357
- .smp_secondary_init = qcom_secondary_init,
358329 .smp_boot_secondary = kpssv2_boot_secondary,
359330 #ifdef CONFIG_HOTPLUG_CPU
360331 .cpu_die = qcom_cpu_die,