mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
MIPS: Cavium: Remove smp_reserve_lock.
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>
This commit is contained in:
parent
6650df3c38
commit
a3c8b4faee
|
|
@ -257,8 +257,6 @@ DEFINE_PER_CPU(int, cpu_state);
|
||||||
|
|
||||||
extern void fixup_irqs(void);
|
extern void fixup_irqs(void);
|
||||||
|
|
||||||
static DEFINE_SPINLOCK(smp_reserve_lock);
|
|
||||||
|
|
||||||
static int octeon_cpu_disable(void)
|
static int octeon_cpu_disable(void)
|
||||||
{
|
{
|
||||||
unsigned int cpu = smp_processor_id();
|
unsigned int cpu = smp_processor_id();
|
||||||
|
|
@ -266,8 +264,6 @@ static int octeon_cpu_disable(void)
|
||||||
if (cpu == 0)
|
if (cpu == 0)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
||||||
spin_lock(&smp_reserve_lock);
|
|
||||||
|
|
||||||
set_cpu_online(cpu, false);
|
set_cpu_online(cpu, false);
|
||||||
cpu_clear(cpu, cpu_callin_map);
|
cpu_clear(cpu, cpu_callin_map);
|
||||||
local_irq_disable();
|
local_irq_disable();
|
||||||
|
|
@ -277,8 +273,6 @@ static int octeon_cpu_disable(void)
|
||||||
flush_cache_all();
|
flush_cache_all();
|
||||||
local_flush_tlb_all();
|
local_flush_tlb_all();
|
||||||
|
|
||||||
spin_unlock(&smp_reserve_lock);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user