Skip to content

Commit

Permalink
MIPS: Cavium: Remove smp_reserve_lock.
Browse files Browse the repository at this point in the history
There is nothing that is protected by this lock and it's getting in the
way of RT.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed May 17, 2012
1 parent 6650df3 commit a3c8b4f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arch/mips/cavium-octeon/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,17 +257,13 @@ DEFINE_PER_CPU(int, cpu_state);

extern void fixup_irqs(void);

static DEFINE_SPINLOCK(smp_reserve_lock);

static int octeon_cpu_disable(void)
{
unsigned int cpu = smp_processor_id();

if (cpu == 0)
return -EBUSY;

spin_lock(&smp_reserve_lock);

set_cpu_online(cpu, false);
cpu_clear(cpu, cpu_callin_map);
local_irq_disable();
Expand All @@ -277,8 +273,6 @@ static int octeon_cpu_disable(void)
flush_cache_all();
local_flush_tlb_all();

spin_unlock(&smp_reserve_lock);

return 0;
}

Expand Down

0 comments on commit a3c8b4f

Please sign in to comment.