forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mach-omap2/omap-smp.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * OMAP4 SMP source file. It contains platform specific functions
34 * needed for the linux smp kernel.
....@@ -10,10 +11,6 @@
1011 * Platform file needed for the OMAP4 SMP. This file is based on arm
1112 * realview smp platform.
1213 * * Copyright (c) 2002 ARM Limited.
13
- *
14
- * This program is free software; you can redistribute it and/or modify
15
- * it under the terms of the GNU General Public License version 2 as
16
- * published by the Free Software Foundation.
1714 */
1815 #include <linux/init.h>
1916 #include <linux/device.h>
....@@ -69,15 +66,13 @@
6966 .startup_addr = omap5_secondary_startup,
7067 };
7168
72
-static DEFINE_RAW_SPINLOCK(boot_lock);
73
-
7469 void __iomem *omap4_get_scu_base(void)
7570 {
7671 return cfg.scu_base;
7772 }
7873
7974 #ifdef CONFIG_OMAP5_ERRATA_801819
80
-void omap5_erratum_workaround_801819(void)
75
+static void omap5_erratum_workaround_801819(void)
8176 {
8277 u32 acr, revidr;
8378 u32 acr_mask;
....@@ -173,12 +168,6 @@
173168 /* Enable ACR to allow for ICUALLU workaround */
174169 omap5_secondary_harden_predictor();
175170 }
176
-
177
- /*
178
- * Synchronise with the boot thread.
179
- */
180
- raw_spin_lock(&boot_lock);
181
- raw_spin_unlock(&boot_lock);
182171 }
183172
184173 static int omap4_boot_secondary(unsigned int cpu, struct task_struct *idle)
....@@ -186,12 +175,6 @@
186175 static struct clockdomain *cpu1_clkdm;
187176 static bool booted;
188177 static struct powerdomain *cpu1_pwrdm;
189
-
190
- /*
191
- * Set synchronisation state between this boot processor
192
- * and the secondary one
193
- */
194
- raw_spin_lock(&boot_lock);
195178
196179 /*
197180 * Update the AuxCoreBoot0 with boot state for secondary core.
....@@ -265,12 +248,6 @@
265248 }
266249
267250 arch_send_wakeup_ipi_mask(cpumask_of(cpu));
268
-
269
- /*
270
- * Now the secondary core is starting up let it run its
271
- * calibrations, then wait for it to finish
272
- */
273
- raw_spin_unlock(&boot_lock);
274251
275252 return 0;
276253 }