diff options
| -rw-r--r-- | arch/mips/cavium-octeon/smp.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/mips/cavium-octeon/smp.c b/arch/mips/cavium-octeon/smp.c index 97e7ce9b50ed..4b93048044eb 100644 --- a/arch/mips/cavium-octeon/smp.c +++ b/arch/mips/cavium-octeon/smp.c | |||
| @@ -257,8 +257,6 @@ DEFINE_PER_CPU(int, cpu_state); | |||
| 257 | 257 | ||
| 258 | extern void fixup_irqs(void); | 258 | extern void fixup_irqs(void); |
| 259 | 259 | ||
| 260 | static DEFINE_SPINLOCK(smp_reserve_lock); | ||
| 261 | |||
| 262 | static int octeon_cpu_disable(void) | 260 | static int octeon_cpu_disable(void) |
| 263 | { | 261 | { |
| 264 | unsigned int cpu = smp_processor_id(); | 262 | unsigned int cpu = smp_processor_id(); |
| @@ -266,8 +264,6 @@ static int octeon_cpu_disable(void) | |||
| 266 | if (cpu == 0) | 264 | if (cpu == 0) |
| 267 | return -EBUSY; | 265 | return -EBUSY; |
| 268 | 266 | ||
| 269 | spin_lock(&smp_reserve_lock); | ||
| 270 | |||
| 271 | set_cpu_online(cpu, false); | 267 | set_cpu_online(cpu, false); |
| 272 | cpu_clear(cpu, cpu_callin_map); | 268 | cpu_clear(cpu, cpu_callin_map); |
| 273 | local_irq_disable(); | 269 | local_irq_disable(); |
| @@ -277,8 +273,6 @@ static int octeon_cpu_disable(void) | |||
| 277 | flush_cache_all(); | 273 | flush_cache_all(); |
| 278 | local_flush_tlb_all(); | 274 | local_flush_tlb_all(); |
| 279 | 275 | ||
| 280 | spin_unlock(&smp_reserve_lock); | ||
| 281 | |||
| 282 | return 0; | 276 | return 0; |
| 283 | } | 277 | } |
| 284 | 278 | ||
