Skip to contentSkip to conversation

microblaze: re-enable interrupts before calling schedule

PATCH Applied Steven J. Magnani 2 participants 2 messages Apr 27, 2010 – Apr 30, 2010 Microblaze architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 microblaze: re-enable interrupts before calling schedule

schedule() should not be called with interrupts disabled.

---

arch/microblaze/kernel/entry-nommu.S +2 -0
diff -uprN a/arch/microblaze/kernel/entry-nommu.S b/arch/microblaze/kernel/entry-nommu.S
@@ -476,6 +476,8 @@ ENTRY(ret_from_fork)
 	nop
 
 work_pending:
+	enable_irq
+
 	andi	r11, r19, _TIF_NEED_RESCHED
 	beqi	r11, 1f
 	bralid	r15, schedule
maintainer Applied
#1 lore raw
Quoted 9 lines · Steven J. Magnani

schedule() should not be called with interrupts disabled.

---
diff -uprN a/arch/microblaze/kernel/entry-nommu.S b/arch/microblaze/kernel/entry-nommu.S

arch/microblaze/kernel/entry-nommu.S ENTRY(ret_from_fork) · line 483

Quoted 8 lines
arch/microblaze/kernel/entry-nommu.S +2 -0
@@ -476,6 +476,8 @@ ENTRY(ret_from_fork)
 	nop
 
 work_pending:
+	enable_irq
+
 	andi	r11, r19, _TIF_NEED_RESCHED
 	beqi	r11, 1f
 	bralid	r15, schedule

Applied

Thanks,
Michal

Signature · 4 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian