[patch 6/6 -rt] powerpc 2.6.20-rt8: fix boot/runtime errors/warnings

Tsutomu OWA tsutomu.owa at toshiba.co.jp
Wed Mar 7 12:47:15 EST 2007


  To fix the following boot time warnings by setting soft_enabled and
hard_enabled.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Freeing unused kernel memory: 248k freed
BUG: scheduling with irqs disabled: rc.sysinit/0x00000000/373
caller is user_work+0x14/0x2c
Call Trace:
[C00000001FEC3D10] [C00000000000FAA0] .show_stack+0x68/0x1b0 (unreliable)
[C00000001FEC3DB0] [C0000000003E78DC] .schedule+0x78/0x128
[C00000001FEC3E30] [C000000000008C40] user_work+0x14/0x2c
BUG: scheduling with irqs disabled: sed/0x00000000/378
caller is user_work+0x14/0x2c
Call Trace:
[C00000000FA33D10] [C00000000000FAA0] .show_stack+0x68/0x1b0 (unreliable)
[C00000000FA33DB0] [C0000000003E78DC] .schedule+0x78/0x128
[C00000000FA33E30] [C000000000008C40] user_work+0x14/0x2c

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

Signed-off-by: Tsutomu Owa <tsutomu.owa at toshiba.co.jp>
-- owa

--- rt/arch/powerpc/kernel/entry_64.S	2007-03-05 18:21:39.000000000 +0900
+++ rt.new/arch/powerpc/kernel/entry_64.S	2007-03-05 18:23:18.000000000 +0900
@@ -572,6 +572,11 @@ do_work:
 
 user_work:
 #endif
+	/* here we are preempting the current task */
+	li	r0,1
+	stb	r0,PACASOFTIRQEN(r13)
+	stb	r0,PACAHARDIRQEN(r13)
+
 	/* Enable interrupts */
 	ori	r10,r10,MSR_EE
 	mtmsrd	r10,1




More information about the Linuxppc-dev mailing list