powerpc/xmon: Fix disabling tracing while in xmon
[linux-2.6-block.git] / arch / powerpc / xmon / xmon.c
index 1b0149b2bb6c9236493a3c0eb2260fc6aeba6c8b..f1c4e1601b9d3000303bef12f6dee65d09f7fd43 100644 (file)
@@ -469,8 +469,10 @@ static int xmon_core(struct pt_regs *regs, int fromipi)
        local_irq_save(flags);
        hard_irq_disable();
 
-       tracing_enabled = tracing_is_on();
-       tracing_off();
+       if (!fromipi) {
+               tracing_enabled = tracing_is_on();
+               tracing_off();
+       }
 
        bp = in_breakpoint_table(regs->nip, &offset);
        if (bp != NULL) {