hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/arm/mach-prima2/platsmp.c
....@@ -22,7 +22,7 @@
2222
2323 static void __iomem *clk_base;
2424
25
-static DEFINE_SPINLOCK(boot_lock);
25
+static DEFINE_RAW_SPINLOCK(boot_lock);
2626
2727 static void sirfsoc_secondary_init(unsigned int cpu)
2828 {
....@@ -36,8 +36,8 @@
3636 /*
3737 * Synchronise with the boot thread.
3838 */
39
- spin_lock(&boot_lock);
40
- spin_unlock(&boot_lock);
39
+ raw_spin_lock(&boot_lock);
40
+ raw_spin_unlock(&boot_lock);
4141 }
4242
4343 static const struct of_device_id clk_ids[] = {
....@@ -75,7 +75,7 @@
7575 /* make sure write buffer is drained */
7676 mb();
7777
78
- spin_lock(&boot_lock);
78
+ raw_spin_lock(&boot_lock);
7979
8080 /*
8181 * The secondary processor is waiting to be released from
....@@ -107,7 +107,7 @@
107107 * now the secondary core is starting up let it run its
108108 * calibrations, then wait for it to finish
109109 */
110
- spin_unlock(&boot_lock);
110
+ raw_spin_unlock(&boot_lock);
111111
112112 return pen_release != -1 ? -ENOSYS : 0;
113113 }