Commit 950312ce authored by Andrew Randrianasulu's avatar Andrew Randrianasulu Committed by Ralf Baechle

MIPS: IP32: Fix hang on shutdown in power button interrupt handler.

The hang was caused by the use of disable_irq() from the interrupt handler
itself.  Fixed by the use of disable_irq_nosync().  The issue was
triggered by:

    commit 3aa551c9
    Author: Thomas Gleixner <tglx@linutronix.de>
    Date:   Mon Mar 23 18:28:15 2009 +0100

        genirq: add threaded interrupt handler support
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 279e677f
...@@ -145,7 +145,7 @@ static irqreturn_t ip32_rtc_int(int irq, void *dev_id) ...@@ -145,7 +145,7 @@ static irqreturn_t ip32_rtc_int(int irq, void *dev_id)
"%s: RTC IRQ without RTC_IRQF\n", __func__); "%s: RTC IRQ without RTC_IRQF\n", __func__);
} }
/* Wait until interrupt goes away */ /* Wait until interrupt goes away */
disable_irq(MACEISA_RTC_IRQ); disable_irq_nosync(MACEISA_RTC_IRQ);
init_timer(&debounce_timer); init_timer(&debounce_timer);
debounce_timer.function = debounce; debounce_timer.function = debounce;
debounce_timer.expires = jiffies + 50; debounce_timer.expires = jiffies + 50;
......
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