hc
2023-11-06 e3e12f52b214121840b44c91de5b3e5af5d3eb84
kernel/arch/arm/mach-exynos/platsmp.c
....@@ -239,7 +239,7 @@
239239 sync_cache_w(&pen_release);
240240 }
241241
242
-static DEFINE_SPINLOCK(boot_lock);
242
+static DEFINE_RAW_SPINLOCK(boot_lock);
243243
244244 static void exynos_secondary_init(unsigned int cpu)
245245 {
....@@ -252,8 +252,8 @@
252252 /*
253253 * Synchronise with the boot thread.
254254 */
255
- spin_lock(&boot_lock);
256
- spin_unlock(&boot_lock);
255
+ raw_spin_lock(&boot_lock);
256
+ raw_spin_unlock(&boot_lock);
257257 }
258258
259259 int exynos_set_boot_addr(u32 core_id, unsigned long boot_addr)
....@@ -317,7 +317,7 @@
317317 * Set synchronisation state between this boot processor
318318 * and the secondary one
319319 */
320
- spin_lock(&boot_lock);
320
+ raw_spin_lock(&boot_lock);
321321
322322 /*
323323 * The secondary processor is waiting to be released from
....@@ -344,7 +344,7 @@
344344
345345 if (timeout == 0) {
346346 printk(KERN_ERR "cpu1 power enable failed");
347
- spin_unlock(&boot_lock);
347
+ raw_spin_unlock(&boot_lock);
348348 return -ETIMEDOUT;
349349 }
350350 }
....@@ -390,7 +390,7 @@
390390 * calibrations, then wait for it to finish
391391 */
392392 fail:
393
- spin_unlock(&boot_lock);
393
+ raw_spin_unlock(&boot_lock);
394394
395395 return pen_release != -1 ? ret : 0;
396396 }