hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/arm/mach-sti/platsmp.c
....@@ -35,7 +35,7 @@
3535 sync_cache_w(&pen_release);
3636 }
3737
38
-static DEFINE_SPINLOCK(boot_lock);
38
+static DEFINE_RAW_SPINLOCK(boot_lock);
3939
4040 static void sti_secondary_init(unsigned int cpu)
4141 {
....@@ -48,8 +48,8 @@
4848 /*
4949 * Synchronise with the boot thread.
5050 */
51
- spin_lock(&boot_lock);
52
- spin_unlock(&boot_lock);
51
+ raw_spin_lock(&boot_lock);
52
+ raw_spin_unlock(&boot_lock);
5353 }
5454
5555 static int sti_boot_secondary(unsigned int cpu, struct task_struct *idle)
....@@ -60,7 +60,7 @@
6060 * set synchronisation state between this boot processor
6161 * and the secondary one
6262 */
63
- spin_lock(&boot_lock);
63
+ raw_spin_lock(&boot_lock);
6464
6565 /*
6666 * The secondary processor is waiting to be released from
....@@ -91,7 +91,7 @@
9191 * now the secondary core is starting up let it run its
9292 * calibrations, then wait for it to finish
9393 */
94
- spin_unlock(&boot_lock);
94
+ raw_spin_unlock(&boot_lock);
9595
9696 return pen_release != -1 ? -ENOSYS : 0;
9797 }