aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/sysrq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/sysrq.c')
-rw-r--r--drivers/char/sysrq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c
index 35082dc12eae..0ad6cb081db4 100644
--- a/drivers/char/sysrq.c
+++ b/drivers/char/sysrq.c
@@ -12,7 +12,6 @@
12 * based upon discusions in irc://irc.openprojects.net/#kernelnewbies 12 * based upon discusions in irc://irc.openprojects.net/#kernelnewbies
13 */ 13 */
14 14
15#include <linux/config.h>
16#include <linux/sched.h> 15#include <linux/sched.h>
17#include <linux/interrupt.h> 16#include <linux/interrupt.h>
18#include <linux/mm.h> 17#include <linux/mm.h>
@@ -148,12 +147,13 @@ static struct sysrq_key_op sysrq_mountro_op = {
148 .enable_mask = SYSRQ_ENABLE_REMOUNT, 147 .enable_mask = SYSRQ_ENABLE_REMOUNT,
149}; 148};
150 149
151#ifdef CONFIG_DEBUG_MUTEXES 150#ifdef CONFIG_LOCKDEP
152static void sysrq_handle_showlocks(int key, struct pt_regs *pt_regs, 151static void sysrq_handle_showlocks(int key, struct pt_regs *pt_regs,
153 struct tty_struct *tty) 152 struct tty_struct *tty)
154{ 153{
155 mutex_debug_show_all_locks(); 154 debug_show_all_locks();
156} 155}
156
157static struct sysrq_key_op sysrq_showlocks_op = { 157static struct sysrq_key_op sysrq_showlocks_op = {
158 .handler = sysrq_handle_showlocks, 158 .handler = sysrq_handle_showlocks,
159 .help_msg = "show-all-locks(D)", 159 .help_msg = "show-all-locks(D)",
@@ -208,7 +208,7 @@ static void send_sig_all(int sig)
208 struct task_struct *p; 208 struct task_struct *p;
209 209
210 for_each_process(p) { 210 for_each_process(p) {
211 if (p->mm && p->pid != 1) 211 if (p->mm && !is_init(p))
212 /* Not swapper, init nor kernel thread */ 212 /* Not swapper, init nor kernel thread */
213 force_sig(sig, p); 213 force_sig(sig, p);
214 } 214 }