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 <[EMAIL PROTECTED]>
-- 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to