Commit c44ce779 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] janitor: change a few SYSRQ to MAGIC_SYSRQ

From: "Randy.Dunlap" <rddunlap@osdl.org>,
      Domen Puncer <domen@coderock.org>

Noone tested that code to see if it really works?
parent a507bf7a
...@@ -264,7 +264,7 @@ struct thread_info *alloc_thread_info(struct task_struct *task) ...@@ -264,7 +264,7 @@ struct thread_info *alloc_thread_info(struct task_struct *task)
if (!thread) if (!thread)
thread = ll_alloc_task_struct(); thread = ll_alloc_task_struct();
#ifdef CONFIG_SYSRQ #ifdef CONFIG_MAGIC_SYSRQ
/* /*
* The stack must be cleared if you want SYSRQ-T to * The stack must be cleared if you want SYSRQ-T to
* give sensible stack usage information * give sensible stack usage information
......
...@@ -257,7 +257,7 @@ struct thread_info *alloc_thread_info(struct task_struct *task) ...@@ -257,7 +257,7 @@ struct thread_info *alloc_thread_info(struct task_struct *task)
if (!thread) if (!thread)
thread = ll_alloc_task_struct(); thread = ll_alloc_task_struct();
#ifdef CONFIG_SYSRQ #ifdef CONFIG_MAGIC_SYSRQ
/* /*
* The stack must be cleared if you want SYSRQ-T to * The stack must be cleared if you want SYSRQ-T to
* give sensible stack usage information * give sensible stack usage information
......
...@@ -376,7 +376,7 @@ int linux_main(int argc, char **argv) ...@@ -376,7 +376,7 @@ int linux_main(int argc, char **argv)
static int panic_exit(struct notifier_block *self, unsigned long unused1, static int panic_exit(struct notifier_block *self, unsigned long unused1,
void *unused2) void *unused2)
{ {
#ifdef CONFIG_SYSRQ #ifdef CONFIG_MAGIC_SYSRQ
handle_sysrq('p', &current->thread.regs, NULL, NULL); handle_sysrq('p', &current->thread.regs, NULL, NULL);
#endif #endif
machine_halt(); machine_halt();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment