diff options
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/kernel/ptrace.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/um/kernel/ptrace.c b/arch/um/kernel/ptrace.c index 484509948ee9..e0510496596c 100644 --- a/arch/um/kernel/ptrace.c +++ b/arch/um/kernel/ptrace.c | |||
@@ -7,9 +7,6 @@ | |||
7 | #include "linux/ptrace.h" | 7 | #include "linux/ptrace.h" |
8 | #include "linux/sched.h" | 8 | #include "linux/sched.h" |
9 | #include "asm/uaccess.h" | 9 | #include "asm/uaccess.h" |
10 | #ifdef CONFIG_PROC_MM | ||
11 | #include "proc_mm.h" | ||
12 | #endif | ||
13 | #include "skas_ptrace.h" | 10 | #include "skas_ptrace.h" |
14 | 11 | ||
15 | 12 | ||
@@ -158,24 +155,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
158 | break; | 155 | break; |
159 | } | 156 | } |
160 | #endif | 157 | #endif |
161 | #ifdef CONFIG_PROC_MM | ||
162 | case PTRACE_SWITCH_MM: { | ||
163 | struct mm_struct *old = child->mm; | ||
164 | struct mm_struct *new = proc_mm_get_mm(data); | ||
165 | |||
166 | if (IS_ERR(new)) { | ||
167 | ret = PTR_ERR(new); | ||
168 | break; | ||
169 | } | ||
170 | |||
171 | atomic_inc(&new->mm_users); | ||
172 | child->mm = new; | ||
173 | child->active_mm = new; | ||
174 | mmput(old); | ||
175 | ret = 0; | ||
176 | break; | ||
177 | } | ||
178 | #endif | ||
179 | #ifdef PTRACE_ARCH_PRCTL | 158 | #ifdef PTRACE_ARCH_PRCTL |
180 | case PTRACE_ARCH_PRCTL: | 159 | case PTRACE_ARCH_PRCTL: |
181 | /* XXX Calls ptrace on the host - needs some SMP thinking */ | 160 | /* XXX Calls ptrace on the host - needs some SMP thinking */ |