[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1182284276.15228.25.camel@localhost.localdomain>
Date: Tue, 19 Jun 2007 16:17:56 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Ingo Molnar <mingo@...e.hu>
Cc: Thomas Gleixner <tglx@...utronix.de>,
LKML <linux-kernel@...r.kernel.org>,
RT <linux-rt-users@...r.kernel.org>
Subject: [PATCH RT] disable preemption on running show all regs.
The show all regs sysrq uses the nmi function to do it. But this
function expects preemption to be off, or funny things happen.
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
Index: linux-2.6.21-rt9/drivers/char/sysrq.c
===================================================================
--- linux-2.6.21-rt9.orig/drivers/char/sysrq.c
+++ linux-2.6.21-rt9/drivers/char/sysrq.c
@@ -213,7 +213,9 @@ static struct sysrq_key_op sysrq_showreg
static void sysrq_handle_showallregs(int key, struct tty_struct *tty)
{
+ preempt_disable();
nmi_show_all_regs();
+ preempt_enable();
}
static struct sysrq_key_op sysrq_showallregs_op = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists