[PATCH] sysrq: disable lockdep on reboot
[deliverable/linux.git] / drivers / char / sysrq.c
index ee3ca8f1768e9be995a62a252404ad4712d5d6bc..6b4d4d1e343da3332f413b8d47c65b00e9ff4a0b 100644 (file)
@@ -113,6 +113,7 @@ static struct sysrq_key_op sysrq_crashdump_op = {
 static void sysrq_handle_reboot(int key, struct pt_regs *pt_regs,
                                struct tty_struct *tty)
 {
+       lockdep_off();
        local_irq_enable();
        emergency_restart();
 }
@@ -208,7 +209,7 @@ static void send_sig_all(int sig)
        struct task_struct *p;
 
        for_each_process(p) {
-               if (p->mm && p->pid != 1)
+               if (p->mm && !is_init(p))
                        /* Not swapper, init nor kernel thread */
                        force_sig(sig, p);
        }
This page took 0.023216 seconds and 5 git commands to generate.