mips: switch to generic compat sched_rr_get_interval()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 25 Dec 2012 22:33:40 +0000 (17:33 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Feb 2013 23:33:00 +0000 (18:33 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/mips/kernel/linux32.c
arch/mips/kernel/scall64-n32.S
arch/mips/kernel/scall64-o32.S

index 7adab86c632ce32efdb6550c87f6f6024fb5006f..703b37e13f782768552e844cb94fd2855f12b0cf 100644 (file)
@@ -119,22 +119,6 @@ SYSCALL_DEFINE6(32_pwrite, unsigned int, fd, const char __user *, buf,
        return sys_pwrite64(fd, buf, count, merge_64(a4, a5));
 }
 
-SYSCALL_DEFINE2(32_sched_rr_get_interval, compat_pid_t, pid,
-       struct compat_timespec __user *, interval)
-{
-       struct timespec t;
-       int ret;
-       mm_segment_t old_fs = get_fs();
-
-       set_fs(KERNEL_DS);
-       ret = sys_sched_rr_get_interval(pid, (struct timespec __user *)&t);
-       set_fs(old_fs);
-       if (put_user (t.tv_sec, &interval->tv_sec) ||
-           __put_user(t.tv_nsec, &interval->tv_nsec))
-               return -EFAULT;
-       return ret;
-}
-
 #ifdef CONFIG_SYSVIPC
 
 SYSCALL_DEFINE6(32_ipc, u32, call, long, first, long, second, long, third,
index 491c389b897fda916badc77395e0339b49eaac7b..5dfeba49ab4f8356d61e9e01dd4fb395850b102a 100644 (file)
@@ -249,7 +249,7 @@ EXPORT(sysn32_call_table)
        PTR     sys_sched_getscheduler
        PTR     sys_sched_get_priority_max
        PTR     sys_sched_get_priority_min
-       PTR     sys_32_sched_rr_get_interval    /* 6145 */
+       PTR     compat_sys_sched_rr_get_interval        /* 6145 */
        PTR     sys_mlock
        PTR     sys_munlock
        PTR     sys_mlockall
index 8362cc8311512be5aae101da37fdcd67b9300c5f..6623077a948821cdf950181b9026accb1a4d0f53 100644 (file)
@@ -357,7 +357,7 @@ sys_call_table:
        PTR     sys_sched_yield
        PTR     sys_sched_get_priority_max
        PTR     sys_sched_get_priority_min
-       PTR     sys_32_sched_rr_get_interval    /* 4165 */
+       PTR     compat_sys_sched_rr_get_interval        /* 4165 */
        PTR     compat_sys_nanosleep
        PTR     sys_mremap
        PTR     sys_accept