]> xenbits.xensource.com Git - people/ssmith/nc2-2.6.27.git/commitdiff
patch sysrq-loglevel
authorSteven Smith <ssmith@weybridge.uk.xensource.com>
Tue, 30 Jun 2009 11:55:48 +0000 (12:55 +0100)
committerSteven Smith <ssmith@weybridge.uk.xensource.com>
Tue, 30 Jun 2009 11:55:48 +0000 (12:55 +0100)
drivers/char/sysrq.c

index 8fdfe9c871e3af99f5a632d2f893bbd0508455ab..cdbb1128de77ed41ec4fa5071136ed4aa9b56091 100644 (file)
@@ -467,7 +467,6 @@ void __handle_sysrq(int key, struct tty_struct *tty, int check_mask)
                 */
                if (!check_mask || sysrq_on_mask(op_p->enable_mask)) {
                        printk("%s\n", op_p->action_msg);
-                       console_loglevel = orig_log_level;
                        op_p->handler(key, tty);
                } else {
                        printk("This sysrq operation is disabled.\n");
@@ -488,8 +487,8 @@ void __handle_sysrq(int key, struct tty_struct *tty, int check_mask)
                        }
                }
                printk("\n");
-               console_loglevel = orig_log_level;
        }
+       console_loglevel = orig_log_level;
        spin_unlock_irqrestore(&sysrq_key_table_lock, flags);
 }