s390: switch to generic compat sched_rr_get_interval()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 25 Dec 2012 22:26:57 +0000 (17:26 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 3 Feb 2013 23:16:13 +0000 (18:16 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/s390/kernel/compat_linux.c
arch/s390/kernel/compat_linux.h
arch/s390/kernel/compat_wrapper.S

index 4b95fc652f7c0b8b99dfffc1ded5b38f014273c0..19f26de27fae8e6fe808e798c565048e510c0d88 100644 (file)
@@ -352,22 +352,6 @@ asmlinkage long sys32_ftruncate64(unsigned int fd, unsigned long high, unsigned
                return sys_ftruncate(fd, (high << 32) | low);
 }
 
-asmlinkage long sys32_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 __force __user *) &t);
-       set_fs (old_fs);
-       if (put_compat_timespec(&t, interval))
-               return -EFAULT;
-       return ret;
-}
-
 asmlinkage long sys32_pread64(unsigned int fd, char __user *ubuf,
                                size_t count, u32 poshi, u32 poslo)
 {
index f0280a198380a0e64e608dc8e3071ee3d06731af..aee753dea1d46a80dc94a6cda2d5ea13b9afd589 100644 (file)
@@ -113,8 +113,6 @@ long sys32_ipc(u32 call, int first, int second, int third, u32 ptr);
 long sys32_truncate64(const char __user * path, unsigned long high,
                      unsigned long low);
 long sys32_ftruncate64(unsigned int fd, unsigned long high, unsigned long low);
-long sys32_sched_rr_get_interval(compat_pid_t pid,
-                                struct compat_timespec __user *interval);
 long sys32_init_module(void __user *umod, unsigned long len,
                       const char __user *uargs);
 long sys32_delete_module(const char __user *name_user, unsigned int flags);
index ee6c36b41ef52ed5391be680f7e847f0658fb7b8..0dd80b9ff74c44ec2de14fd841c50918c10f96a3 100644 (file)
@@ -631,7 +631,7 @@ ENTRY(sys32_sched_get_priority_min_wrapper)
 ENTRY(sys32_sched_rr_get_interval_wrapper)
        lgfr    %r2,%r2                 # pid_t
        llgtr   %r3,%r3                 # struct compat_timespec *
-       jg      sys32_sched_rr_get_interval     # branch to system call
+       jg      compat_sys_sched_rr_get_interval        # branch to system call
 
 ENTRY(compat_sys_nanosleep_wrapper)
        llgtr   %r2,%r2                 # struct compat_timespec *