| .. | .. |
|---|
| 22 | 22 | |
|---|
| 23 | 23 | static void __iomem *clk_base; |
|---|
| 24 | 24 | |
|---|
| 25 | | -static DEFINE_SPINLOCK(boot_lock); |
|---|
| 25 | +static DEFINE_RAW_SPINLOCK(boot_lock); |
|---|
| 26 | 26 | |
|---|
| 27 | 27 | static void sirfsoc_secondary_init(unsigned int cpu) |
|---|
| 28 | 28 | { |
|---|
| .. | .. |
|---|
| 36 | 36 | /* |
|---|
| 37 | 37 | * Synchronise with the boot thread. |
|---|
| 38 | 38 | */ |
|---|
| 39 | | - spin_lock(&boot_lock); |
|---|
| 40 | | - spin_unlock(&boot_lock); |
|---|
| 39 | + raw_spin_lock(&boot_lock); |
|---|
| 40 | + raw_spin_unlock(&boot_lock); |
|---|
| 41 | 41 | } |
|---|
| 42 | 42 | |
|---|
| 43 | 43 | static const struct of_device_id clk_ids[] = { |
|---|
| .. | .. |
|---|
| 75 | 75 | /* make sure write buffer is drained */ |
|---|
| 76 | 76 | mb(); |
|---|
| 77 | 77 | |
|---|
| 78 | | - spin_lock(&boot_lock); |
|---|
| 78 | + raw_spin_lock(&boot_lock); |
|---|
| 79 | 79 | |
|---|
| 80 | 80 | /* |
|---|
| 81 | 81 | * The secondary processor is waiting to be released from |
|---|
| .. | .. |
|---|
| 107 | 107 | * now the secondary core is starting up let it run its |
|---|
| 108 | 108 | * calibrations, then wait for it to finish |
|---|
| 109 | 109 | */ |
|---|
| 110 | | - spin_unlock(&boot_lock); |
|---|
| 110 | + raw_spin_unlock(&boot_lock); |
|---|
| 111 | 111 | |
|---|
| 112 | 112 | return pen_release != -1 ? -ENOSYS : 0; |
|---|
| 113 | 113 | } |
|---|