public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] arm: Enable interrupts before calling schedule()
@ 2016-05-20 15:42 Thomas Gleixner
  2016-05-23 10:54 ` Catalin Marinas
  2016-05-23 12:44 ` Peter Zijlstra
  0 siblings, 2 replies; 4+ messages in thread
From: Thomas Gleixner @ 2016-05-20 15:42 UTC (permalink / raw)
  To: linux-arm-kernel

do_work_pending() calls schedule() with interrupts disabled, which is just
wrong. Fix it.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/arm/kernel/signal.c |    1 +
 1 file changed, 1 insertion(+)

--- a/arch/arm/kernel/signal.c
+++ b/arch/arm/kernel/signal.c
@@ -573,6 +573,7 @@ do_work_pending(struct pt_regs *regs, un
 	trace_hardirqs_off();
 	do {
 		if (likely(thread_flags & _TIF_NEED_RESCHED)) {
+			local_irq_enable();
 			schedule();
 		} else {
 			if (unlikely(!user_mode(regs)))

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-05-23 12:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-20 15:42 [PATCH] arm: Enable interrupts before calling schedule() Thomas Gleixner
2016-05-23 10:54 ` Catalin Marinas
2016-05-23 11:09   ` Russell King - ARM Linux
2016-05-23 12:44 ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox