Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309025
b: refs/heads/master
c: a3c8b4f
h: refs/heads/master
i:
  309023: 9d58db2
v: v3
  • Loading branch information
Ralf Baechle committed May 17, 2012
1 parent 1e35e8f commit 46308c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6650df3c380e0db558dbfec63ed860402c6afb2a
refs/heads/master: a3c8b4faeeccb33dbad6969bc9e50bf409f167e7
6 changes: 0 additions & 6 deletions trunk/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 46308c2

Please sign in to comment.