Skip to content

Commit

Permalink
MIPS: sync-r4k: remove redundant irq operation
Browse files Browse the repository at this point in the history
Since we have delayed irq enabling to ->smp_finish()

Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: David Daney <david.daney@cavium.com>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Yong Zhang authored and ralfbaechle committed Jul 19, 2012
1 parent b789ad6 commit f2b88d6
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions arch/mips/kernel/sync-r4k.c
Expand Up @@ -111,7 +111,6 @@ void __cpuinit synchronise_count_master(void)
void __cpuinit synchronise_count_slave(void)
{
int i;
unsigned long flags;
unsigned int initcount;
int ncpus;

Expand All @@ -123,8 +122,6 @@ void __cpuinit synchronise_count_slave(void)
return;
#endif

local_irq_save(flags);

/*
* Not every cpu is online at the time this gets called,
* so we first wait for the master to say everyone is ready
Expand Down Expand Up @@ -154,7 +151,5 @@ void __cpuinit synchronise_count_slave(void)
}
/* Arrange for an interrupt in a short while */
write_c0_compare(read_c0_count() + COUNTON);

local_irq_restore(flags);
}
#undef NR_LOOPS

0 comments on commit f2b88d6

Please sign in to comment.