Commit d882f07a authored by Ralf Baechle's avatar Ralf Baechle

MIPS: Idle: Don't call local_irq_disable() in cpu_wait() implementations.

The generic idle loop has already disabled interrupts so this is redundant.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent fb40bc3e
...@@ -39,7 +39,6 @@ static void r3081_wait(void) ...@@ -39,7 +39,6 @@ static void r3081_wait(void)
static void r39xx_wait(void) static void r39xx_wait(void)
{ {
local_irq_disable();
if (!need_resched()) if (!need_resched())
write_c0_conf(read_c0_conf() | TX39_CONF_HALT); write_c0_conf(read_c0_conf() | TX39_CONF_HALT);
local_irq_enable(); local_irq_enable();
...@@ -56,7 +55,6 @@ extern void r4k_wait(void); ...@@ -56,7 +55,6 @@ extern void r4k_wait(void);
*/ */
void r4k_wait_irqoff(void) void r4k_wait_irqoff(void)
{ {
local_irq_disable();
if (!need_resched()) if (!need_resched())
__asm__( __asm__(
" .set push \n" " .set push \n"
...@@ -75,7 +73,6 @@ void r4k_wait_irqoff(void) ...@@ -75,7 +73,6 @@ void r4k_wait_irqoff(void)
*/ */
static void rm7k_wait_irqoff(void) static void rm7k_wait_irqoff(void)
{ {
local_irq_disable();
if (!need_resched()) if (!need_resched())
__asm__( __asm__(
" .set push \n" " .set push \n"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment