提交 f2b88d65 编写于 作者: Y Yong Zhang 提交者: Ralf Baechle

MIPS: sync-r4k: remove redundant irq operation

Since we have delayed irq enabling to ->smp_finish()
Signed-off-by: NYong Zhang <yong.zhang0@gmail.com>
Cc: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: David Daney <david.daney@cavium.com>
Acked-by: NDavid Daney <david.daney@cavium.com>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 b789ad63
...@@ -111,7 +111,6 @@ void __cpuinit synchronise_count_master(void) ...@@ -111,7 +111,6 @@ void __cpuinit synchronise_count_master(void)
void __cpuinit synchronise_count_slave(void) void __cpuinit synchronise_count_slave(void)
{ {
int i; int i;
unsigned long flags;
unsigned int initcount; unsigned int initcount;
int ncpus; int ncpus;
...@@ -123,8 +122,6 @@ void __cpuinit synchronise_count_slave(void) ...@@ -123,8 +122,6 @@ void __cpuinit synchronise_count_slave(void)
return; return;
#endif #endif
local_irq_save(flags);
/* /*
* Not every cpu is online at the time this gets called, * Not every cpu is online at the time this gets called,
* so we first wait for the master to say everyone is ready * so we first wait for the master to say everyone is ready
...@@ -154,7 +151,5 @@ void __cpuinit synchronise_count_slave(void) ...@@ -154,7 +151,5 @@ void __cpuinit synchronise_count_slave(void)
} }
/* Arrange for an interrupt in a short while */ /* Arrange for an interrupt in a short while */
write_c0_compare(read_c0_count() + COUNTON); write_c0_compare(read_c0_count() + COUNTON);
local_irq_restore(flags);
} }
#undef NR_LOOPS #undef NR_LOOPS
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册