aboutsummaryrefslogtreecommitdiffstats
path: root/arch/c6x/kernel/process.c
diff options
context:
space:
mode:
authorMark Salter <msalter@redhat.com>2012-09-21 12:26:39 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2012-10-01 00:59:09 -0400
commit680a14535c330481517d3f95b2277353a14b8442 (patch)
tree2059d744e0fc93706864b2396b45cf0673d39286 /arch/c6x/kernel/process.c
parent39fcf44099dd64679c232c4a7bb81cf469e4e43c (diff)
c6x: switch to generic sys_execve
Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/c6x/kernel/process.c')
-rw-r--r--arch/c6x/kernel/process.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/c6x/kernel/process.c b/arch/c6x/kernel/process.c
index d2ffc9bdaba1..f98616d92f2d 100644
--- a/arch/c6x/kernel/process.c
+++ b/arch/c6x/kernel/process.c
@@ -207,28 +207,6 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
207 return 0; 207 return 0;
208} 208}
209 209
210/*
211 * c6x_execve() executes a new program.
212 */
213SYSCALL_DEFINE4(c6x_execve, const char __user *, name,
214 const char __user *const __user *, argv,
215 const char __user *const __user *, envp,
216 struct pt_regs *, regs)
217{
218 int error;
219 char *filename;
220
221 filename = getname(name);
222 error = PTR_ERR(filename);
223 if (IS_ERR(filename))
224 goto out;
225
226 error = do_execve(filename, argv, envp, regs);
227 putname(filename);
228out:
229 return error;
230}
231
232unsigned long get_wchan(struct task_struct *p) 210unsigned long get_wchan(struct task_struct *p)
233{ 211{
234 return p->thread.wchan; 212 return p->thread.wchan;