]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tile: Enable interrupts in do_work_pending()
authorChris Metcalf <cmetcalf@tilera.com>
Mon, 12 Aug 2013 18:57:12 +0000 (14:57 -0400)
committerChris Metcalf <cmetcalf@tilera.com>
Tue, 13 Aug 2013 20:28:17 +0000 (16:28 -0400)
A recent change triggered a WARN_ON that interrupts were disabled,
and in fact other architectures enable interrupts uniformly for their
related do_work_pending() type code, and all the things we call from
this routine appear to expect interrupts to be enabled.  So, enable them.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/kernel/process.c

index 2629ff1b91954caf82305b756256307de8a97985..9892f03d5361dd88d0d15005d5ed3c9148ae8534 100644 (file)
@@ -550,6 +550,9 @@ int do_work_pending(struct pt_regs *regs, u32 thread_info_flags)
        }
 #endif
 
+       /* Enable interrupts; they are disabled again on return to caller. */
+       local_irq_enable();
+
        if (thread_info_flags & _TIF_NEED_RESCHED) {
                schedule();
                return 1;