| .. | .. |
|---|
| 35 | 35 | sync_cache_w(&pen_release); |
|---|
| 36 | 36 | } |
|---|
| 37 | 37 | |
|---|
| 38 | | -static DEFINE_SPINLOCK(boot_lock); |
|---|
| 38 | +static DEFINE_RAW_SPINLOCK(boot_lock); |
|---|
| 39 | 39 | |
|---|
| 40 | 40 | static void sti_secondary_init(unsigned int cpu) |
|---|
| 41 | 41 | { |
|---|
| .. | .. |
|---|
| 48 | 48 | /* |
|---|
| 49 | 49 | * Synchronise with the boot thread. |
|---|
| 50 | 50 | */ |
|---|
| 51 | | - spin_lock(&boot_lock); |
|---|
| 52 | | - spin_unlock(&boot_lock); |
|---|
| 51 | + raw_spin_lock(&boot_lock); |
|---|
| 52 | + raw_spin_unlock(&boot_lock); |
|---|
| 53 | 53 | } |
|---|
| 54 | 54 | |
|---|
| 55 | 55 | static int sti_boot_secondary(unsigned int cpu, struct task_struct *idle) |
|---|
| .. | .. |
|---|
| 60 | 60 | * set synchronisation state between this boot processor |
|---|
| 61 | 61 | * and the secondary one |
|---|
| 62 | 62 | */ |
|---|
| 63 | | - spin_lock(&boot_lock); |
|---|
| 63 | + raw_spin_lock(&boot_lock); |
|---|
| 64 | 64 | |
|---|
| 65 | 65 | /* |
|---|
| 66 | 66 | * The secondary processor is waiting to be released from |
|---|
| .. | .. |
|---|
| 91 | 91 | * now the secondary core is starting up let it run its |
|---|
| 92 | 92 | * calibrations, then wait for it to finish |
|---|
| 93 | 93 | */ |
|---|
| 94 | | - spin_unlock(&boot_lock); |
|---|
| 94 | + raw_spin_unlock(&boot_lock); |
|---|
| 95 | 95 | |
|---|
| 96 | 96 | return pen_release != -1 ? -ENOSYS : 0; |
|---|
| 97 | 97 | } |
|---|