diff options
Diffstat (limited to 'arch/um/drivers')
-rw-r--r-- | arch/um/drivers/mconsole_kern.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c index d87090507401..4d563b9dde56 100644 --- a/arch/um/drivers/mconsole_kern.c +++ b/arch/um/drivers/mconsole_kern.c | |||
@@ -735,8 +735,6 @@ void mconsole_sysrq(struct mc_request *req) | |||
735 | } | 735 | } |
736 | #endif | 736 | #endif |
737 | 737 | ||
738 | #ifdef CONFIG_MODE_SKAS | ||
739 | |||
740 | static void stack_proc(void *arg) | 738 | static void stack_proc(void *arg) |
741 | { | 739 | { |
742 | struct task_struct *from = current, *to = arg; | 740 | struct task_struct *from = current, *to = arg; |
@@ -750,7 +748,7 @@ static void stack_proc(void *arg) | |||
750 | * Dumps a stacks registers to the linux console. | 748 | * Dumps a stacks registers to the linux console. |
751 | * Usage stack <pid>. | 749 | * Usage stack <pid>. |
752 | */ | 750 | */ |
753 | static void do_stack_trace(struct mc_request *req) | 751 | void mconsole_stack(struct mc_request *req) |
754 | { | 752 | { |
755 | char *ptr = req->request.data; | 753 | char *ptr = req->request.data; |
756 | int pid_requested= -1; | 754 | int pid_requested= -1; |
@@ -781,17 +779,6 @@ static void do_stack_trace(struct mc_request *req) | |||
781 | } | 779 | } |
782 | with_console(req, stack_proc, to); | 780 | with_console(req, stack_proc, to); |
783 | } | 781 | } |
784 | #endif /* CONFIG_MODE_SKAS */ | ||
785 | |||
786 | void mconsole_stack(struct mc_request *req) | ||
787 | { | ||
788 | /* This command doesn't work in TT mode, so let's check and then | ||
789 | * get out of here | ||
790 | */ | ||
791 | CHOOSE_MODE(mconsole_reply(req, "Sorry, this doesn't work in TT mode", | ||
792 | 1, 0), | ||
793 | do_stack_trace(req)); | ||
794 | } | ||
795 | 782 | ||
796 | /* Changed by mconsole_setup, which is __setup, and called before SMP is | 783 | /* Changed by mconsole_setup, which is __setup, and called before SMP is |
797 | * active. | 784 | * active. |