diff options
Diffstat (limited to 'drivers/char/sysrq.c')
-rw-r--r-- | drivers/char/sysrq.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/char/sysrq.c b/drivers/char/sysrq.c index 67deb7f27..9650457c0 100644 --- a/drivers/char/sysrq.c +++ b/drivers/char/sysrq.c @@ -30,6 +30,9 @@ extern void reset_vc(unsigned int); extern int console_loglevel; extern struct list_head super_blocks; +/* Whether we react on sysrq keys or just ignore them */ +int sysrq_enabled = 1; + /* Machine specific power off function */ void (*sysrq_power_off)(void) = NULL; @@ -60,6 +63,9 @@ void handle_sysrq(int key, struct pt_regs *pt_regs, { int orig_log_level = console_loglevel; + if (!sysrq_enabled) + return; + if (!key) return; |