MIPS: Idle: Don't call local_irq_disable() in cpu_wait() implementations.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 21 May 2013 12:14:48 +0000 (14:14 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 21 May 2013 23:34:27 +0000 (01:34 +0200)
The generic idle loop has already disabled interrupts so this is redundant.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/idle.c

index 78cc7d6fc845ff9858cc1e9595de0428e718522c..1f85dda03df456ea598dedcef7c7f6147620254a 100644 (file)
@@ -39,7 +39,6 @@ static void r3081_wait(void)
 
 static void r39xx_wait(void)
 {
-       local_irq_disable();
        if (!need_resched())
                write_c0_conf(read_c0_conf() | TX39_CONF_HALT);
        local_irq_enable();
@@ -56,7 +55,6 @@ extern void r4k_wait(void);
  */
 void r4k_wait_irqoff(void)
 {
-       local_irq_disable();
        if (!need_resched())
                __asm__(
                "       .set    push            \n"
@@ -75,7 +73,6 @@ void r4k_wait_irqoff(void)
  */
 static void rm7k_wait_irqoff(void)
 {
-       local_irq_disable();
        if (!need_resched())
                __asm__(
                "       .set    push                                    \n"