.. | .. |
---|
46 | 46 | |
---|
47 | 47 | extern void secondary_startup_arm(void); |
---|
48 | 48 | |
---|
49 | | -static DEFINE_SPINLOCK(boot_lock); |
---|
| 49 | +static DEFINE_RAW_SPINLOCK(boot_lock); |
---|
50 | 50 | |
---|
51 | 51 | #ifdef CONFIG_HOTPLUG_CPU |
---|
52 | 52 | static void qcom_cpu_die(unsigned int cpu) |
---|
.. | .. |
---|
60 | 60 | /* |
---|
61 | 61 | * Synchronise with the boot thread. |
---|
62 | 62 | */ |
---|
63 | | - spin_lock(&boot_lock); |
---|
64 | | - spin_unlock(&boot_lock); |
---|
| 63 | + raw_spin_lock(&boot_lock); |
---|
| 64 | + raw_spin_unlock(&boot_lock); |
---|
65 | 65 | } |
---|
66 | 66 | |
---|
67 | 67 | static int scss_release_secondary(unsigned int cpu) |
---|
.. | .. |
---|
284 | 284 | * set synchronisation state between this boot processor |
---|
285 | 285 | * and the secondary one |
---|
286 | 286 | */ |
---|
287 | | - spin_lock(&boot_lock); |
---|
| 287 | + raw_spin_lock(&boot_lock); |
---|
288 | 288 | |
---|
289 | 289 | /* |
---|
290 | 290 | * Send the secondary CPU a soft interrupt, thereby causing |
---|
.. | .. |
---|
297 | 297 | * now the secondary core is starting up let it run its |
---|
298 | 298 | * calibrations, then wait for it to finish |
---|
299 | 299 | */ |
---|
300 | | - spin_unlock(&boot_lock); |
---|
| 300 | + raw_spin_unlock(&boot_lock); |
---|
301 | 301 | |
---|
302 | 302 | return ret; |
---|
303 | 303 | } |
---|